Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPProcessIdentityCollection class

Represents a collection of SPProcessIdentity objects.

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

[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.
Show:
© 2015 Microsoft