次の方法で共有


SPProcessIdentity Class

Represents a process identity, which specifies an Internet Information Services (IIS) application pool and Windows service account.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPersistedObject
      Microsoft.SharePoint.Administration.SPProcessIdentity
        Microsoft.SharePoint.Administration.SPApplicationPool

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

Syntax

<GuidAttribute("E98B581E-6AEC-491f-AC4A-8E2DB794C33E")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPProcessIdentity _
    Inherits SPPersistedObject

Dim instance As SPProcessIdentity
[GuidAttribute("E98B581E-6AEC-491f-AC4A-8E2DB794C33E")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SPProcessIdentity : SPPersistedObject

Remarks

Use the ProcessIdentity property to return the process identity of a Windows service. Use the SPProcessIdentityCollection constructor to return the collection of process identities for a service.

Use an indexer to return a single process identity from the collection. For example, if the collection is assigned to a variable named myProcessIdentities, use myProcessIdentities[index] in C#, or myProcessIdentities(index) in Visual Basic, where index is either the GUID or the name that identifies the process identity.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPProcessIdentity Members

Microsoft.SharePoint.Administration Namespace