SPProcessIdentityCollection Class

Represents a collection of SPProcessIdentity objects.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPProcessIdentityCollection : SPPersistedChildCollection<SPProcessIdentity>

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.

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