SPSite.Impersonating property

Gets a Boolean value that indicates the impersonation status of the SPSite object.

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

Syntax

'Declaration
Public ReadOnly Property Impersonating As Boolean
    Get
'Usage
Dim instance As SPSite
Dim value As Boolean

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

Property value

Type: System.Boolean
true if the SPSite object was created with an SPUserToken parameter, indicating that the site collection impersonates the identity of a user; otherwise, false.

See also

Reference

SPSite class

SPSite members

Microsoft.SharePoint namespace