Can be hard to know
If dementia occurs in the context of cerebrovascular disease (strokes, tias), especially if the deficits correlate with known anatomical lesions, it is presumed vascular. Neuropsych testing may add evidence (or not).
also tends to progress in discrete steps, rather than continuously. There are many causes of dementia; some can be hard to diagnose in the living patient.