SPProcessIdentity.CurrentIdentityType Property
Gets or sets the type of identity under which the application runs.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Property CurrentIdentityType As IdentityType
Get
Set
'Usage
Dim instance As SPProcessIdentity
Dim value As IdentityType
value = instance.CurrentIdentityType
instance.CurrentIdentityType = value
public IdentityType CurrentIdentityType { get; set; }
Property Value
Type: Microsoft.SharePoint.Administration.IdentityType
An IdentityType value that specifies the identity type.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The user is trying to change an SPApplicationPool to start using Local System or Local Service. |