共用方式為


SPProcessIdentityCollection class

代表SPProcessIdentity物件的集合。

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

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

備註

使用ProcessIdentity屬性可傳回 Windows 服務的程序識別碼。若要傳回之服務的程序識別集合使用SPProcessIdentityCollection建構函式。若要新增至集合中的程序身分識別,使用SPPersistedChildCollection<T>類別之Add方法。

若要從集合中傳回單一的程序身分識別使用索引器。例如,若集合已指派給變數 myProcessIdentities,使用myProcessIdentities[index]以 C# 或 Visual Basic,其中index是 GUID 或識別程序識別的名稱中的myProcessIdentities(index) 。

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.

請參閱

參照

SPProcessIdentityCollection members

Microsoft.SharePoint.Administration namespace