SPFile.InDocumentLibrary property

Gets a Boolean value that indicates whether the file belongs to a document library.

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

Syntax

'Declaration
Public ReadOnly Property InDocumentLibrary As Boolean
    Get
'Usage
Dim instance As SPFile
Dim value As Boolean

value = instance.InDocumentLibrary
public bool InDocumentLibrary { get; }

Property value

Type: System.Boolean
true if the file belongs to a document library; otherwise, false.

See also

Reference

SPFile class

SPFile members

Microsoft.SharePoint namespace