共用方式為


SPOutboundMailServiceInstanceCollection class

代表SPOutboundMailServiceInstance物件的集合。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPPersistedObjectCollection<SPOutboundMailServiceInstance>
    Microsoft.SharePoint.Administration.SPPersistedChildCollection<SPOutboundMailServiceInstance>
      Microsoft.SharePoint.Administration.SPOutboundMailServiceInstanceCollection

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

Syntax

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

備註

使用SPOutboundMailService類別繼承的Instances屬性可傳回SPServiceInstanceDependencyCollection物件,代表所有外寄郵件服務的執行個體。使用SPOutboundMailServiceInstanceCollection建構函式,傳回集合的外寄郵件在特定的伺服器執行的服務執行個體。若要新增至集合中的服務執行個體,使用SPPersistedChildCollection<T>類別之Add方法。

若要從集合中傳回單一的外寄郵件服務執行個體使用索引器。例如,若集合已指派給變數myOutboundMailServiceInstances,使用myOutboundMailServiceInstances[index]以 C# 或 Visual Basic 中的myOutboundMailServiceInstances(index)index所在的名稱或 GUID,會識別集合中的服務執行個體。

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.

請參閱

參照

SPOutboundMailServiceInstanceCollection members

Microsoft.SharePoint.Administration namespace