Share via


File.Exists Property

Gets a value that specifies whether the file exists.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public ReadOnly Property Exists As Boolean
    Get
'Usage
Dim instance As File
Dim value As Boolean

value = instance.Exists
[RemoteAttribute]
public bool Exists { get; }

Property Value

Type: System.Boolean
Returns Booleantrue if the file exists; otherwise, returns false.

See Also

Reference

File Class

File Members

Microsoft.SharePoint.Client Namespace