共用方式為


SPAlternateUrlCollection class

代表SPAlternateUrl物件的集合。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Administration.SPPersistedObject
      Microsoft.SharePoint.Administration.SPAlternateUrlCollection

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

Syntax

'宣告
<GuidAttribute("9920F486-2FF4-4d10-9532-E01979826585")> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPAlternateUrlCollection _
    Inherits SPPersistedObject _
    Implements ICollection(Of SPAlternateUrl), IEnumerable(Of SPAlternateUrl),  _
    IEnumerable, IBackupRestore
'用途
Dim instance As SPAlternateUrlCollection
[GuidAttribute("9920F486-2FF4-4d10-9532-E01979826585")]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SPAlternateUrlCollection : SPPersistedObject, 
    ICollection<SPAlternateUrl>, IEnumerable<SPAlternateUrl>, IEnumerable, 
    IBackupRestore

備註

若要建立的替代要求 URL,請使用SPAlternateUrl建構函式產生 URL 物件和Add方法將物件新增到指定的區域 URL 物件的集合。要求 URL 可以一次只能指定每個 Windows SharePoint Services 伺服器陣列。

若要從集合中傳回單一 URL 中使用索引器。例如,假設集合指派給變數myUrls,在 Microsoft Visual C# 或myUrls(index) Microsoft Visual Basic 中,其中index是集合中項目的索引編號,或是包含傳入的要求 URL 的字串中使用myUrls[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.

請參閱

參照

SPAlternateUrlCollection members

Microsoft.SharePoint.Administration namespace