Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Exists property

SPFile.Exists property

Gets a Boolean value that indicates whether the file exists.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Public ReadOnly Property Exists As Boolean
Dim instance As SPFile
Dim value As Boolean

value = instance.Exists

Property value

Type: System.Boolean
true if the file exists; otherwise, false.
© 2015 Microsoft