SPProcessIdentityCollection class

Represents a collection of SPProcessIdentity objects.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPPersistedObjectCollection<SPProcessIdentity>
    Microsoft.SharePoint.Administration.SPPersistedChildCollection<SPProcessIdentity>
      Microsoft.SharePoint.Administration.SPProcessIdentityCollection

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPProcessIdentityCollection _
    Inherits SPPersistedChildCollection(Of SPProcessIdentity)
'Usage
Dim instance As SPProcessIdentityCollection
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPProcessIdentityCollection : SPPersistedChildCollection<SPProcessIdentity>

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. To add a process identity to the collection, use the Add method of the SPPersistedChildCollection<T> class.

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

SPProcessIdentityCollection members

Microsoft.SharePoint.Administration namespace