SPContext.FileLevel Property

Gets the representation of the version of the file or ASP.Net page.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public ReadOnly Property FileLevel As SPFileLevel
    Get
'Usage
Dim instance As SPContext
Dim value As SPFileLevel

value = instance.FileLevel
public SPFileLevel FileLevel { get; }

Property Value

Type: Microsoft.SharePoint.SPFileLevel
Returns an SPFileLevel object that represents the version of the file or ASP.Net page file within the request context.

Remarks

If a version of the file or ASP.NET page file exists, either as ghosted or unghosted, then its version is used. Otherwise, the default value of the FileLevel is Published.

See Also

Reference

SPContext Class

SPContext Members

Microsoft.SharePoint Namespace