Share via


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)

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.

See also

Reference

SPProcessIdentity class

SPProcessIdentity members

Microsoft.SharePoint.Administration namespace