共用方式為


SPAlternateUrlCollection members

Include protected members
Include inherited members

代表SPAlternateUrl物件的集合。

The SPAlternateUrlCollection type exposes the following members.

Constructors

  Name Description
Public method SPAlternateUrlCollection() 初始化SPAlternateUrlCollection類別的新執行個體。
Public method SPAlternateUrlCollection(String, SPFarm) 初始化根據指定的名稱和伺服器陣列物件的SPAlternateUrlCollection類別的新執行個體。

Top

Properties

  Name Description
Public property CanRenameOnRestore 取得一個值,指出已還原時,是否可以重新命名SPAlternateUrlCollection 。
Public property CanSelectForBackup 取得或設定一個值,指出是否SPAlternateUrlCollection可以選取個別的管理中心使用者介面 (UI) 中的備份作業。
Public property CanSelectForRestore 取得或設定一個值,指出是否SPAlternateUrlCollection可以選取個別的管理中心使用者介面 (UI) 中的還原作業。
Public property Count 取得集合中的替代要求 Url 數目。
Public property DiskSizeRequired 會取得所需的備份的磁碟空間。
Public property DisplayName 取得集合中的顯示名稱。 (Overrides SPPersistedObject.DisplayName.)
Public property Farm 取得物件所在的伺服器陣列。 (Inherited from SPPersistedObject.)
Public property Id 取得或設定與物件關聯的 GUID。 (Inherited from SPPersistedObject.)
Public property IsReadOnly 取得一個值,指出是否可以修改的集合。
Public property Item[Int32] 取得替代要求 URL 物件在集合中的指定索引處。
Public property Item[String] 從集合取得指定之傳入 URL 與備用要求 URL 物件。
Public property Item[Uri] 從集合取得具有指定之 URI 的替代要求 URL 物件。
Public property Name 取得或設定用來唯一地識別具有相同的父項和類別的兩個物件的名稱。 (Inherited from SPPersistedObject.)
Public property Parent 取得父項的組態物件樹狀目錄之邏輯階層中。 (Inherited from SPPersistedObject.)
Public property Properties 取得保存物件的中繼資料。 (Inherited from SPPersistedObject.)
Public property Status 取得或設定此類別代表物件的狀態。 (Inherited from SPPersistedObject.)
Public property TypeName 會取得集合,以英文為Alternate Access Mapping Collection的當地語系化的顯示名稱。 (Overrides SPPersistedObject.TypeName.)
Public property UpgradedPersistedProperties 取得已刪除或變更的欄位的欄位名稱和值集合。 (Inherited from SPAutoSerializingObject.)
Public property Version 取得一個值,每的次就遞增物件已更新。 (Inherited from SPPersistedObject.)
Protected property WasCreated 取得 Boolean 值,指出物件是否已初始化,以及是否可以在資料庫中找到。 (Inherited from SPPersistedObject.)

Top

Methods

  Name Description
Public method Add 將指定的 URL 新增至 Web 應用程式的備用要求 Url 的集合。
Public method AddBackupObjects 備份/還原作業,會新增SPAlternateUrlCollection及其子系。
Public method Clear 會移除所有的 Url,從集合中無效狀態離開集合。
Public method Clone 會傳回物件,不是來自於記憶體中快取,可讓呼叫的程式碼,以協助確保執行緒安全的複製物件。 (Inherited from SPPersistedObject.)
Public method Contains 會傳回一個值,指出指定的 URL 是否包含在集合中。
Public method CopyTo 將集合中的項目複製到SPAlternateUrl物件,指定的陣列索引處開始的陣列。
Public method Delete() 會刪除備用 Url 的整個集合,並清除本機快取。 (Overrides SPPersistedObject.Delete().)
Public method Delete(Int32) 從集合中刪除的指定索引處的 URL。
Public method Delete(String) 從集合中刪除指定的 URL。
Public method Ensure 如果它尚未存在集合中,請將傳入的 URL 新增至集合。
Public method Equals 會決定目前保存的物件是否等於指定的物件。 (Inherited from SPPersistedObject.)
Protected method Finalize (Inherited from Object.)
Public method GetChild<T>() 會傳回指定類型為基礎的持續性物件的子系。 (Inherited from SPPersistedObject.)
Public method GetChild<T>(String) 會傳回指定名稱為基礎的持續性物件的子物件。 (Inherited from SPPersistedObject.)
Public method GetEnumerator 會傳回IEnumerator物件,可以用來存取集合中的項目。
Public method GetHashCode 做為保存物件的雜湊函數。 (Inherited from SPPersistedObject.)
Public method GetObjectData 取得序列的物件的狀態。 (Inherited from SPAutoSerializingObject.)
Public method GetResponseUrl(SPUrlZone) 會傳回產生的指定區域的輸出 URL 時要使用適當的 URL。
Public method GetResponseUrl(SPUrlZone, Boolean) 會傳回產生的指定區域的輸出 URL 時要使用適當的 URL。此方法會指定是否傳回Default區域的回應 URL 如果回應找不到要求的區域 URL。
Public method GetType (Inherited from Object.)
Protected method HasAdditionalUpdateAccess 覆寫此方法,以允許多個使用者更新物件。 (Inherited from SPPersistedObject.)
Protected method MemberwiseClone (Inherited from Object.)
Public method OnAbort 引發中止 (備份) 的事件。
Public method OnBackup 會引發備份事件。
Public method OnBackupComplete 會引發 BackupComplete 事件。
Protected method OnDeserialization 指定 Windows SharePoint Services 中執行額外的張貼還原序列化安裝作業。 (Overrides SPPersistedObject.OnDeserialization().)
Public method OnPostRestore 會引發 PostRestore 事件。
Public method OnPrepareBackup 會引發 PrepareBackup 事件。
Public method OnPreRestore 會引發 PreRestore 事件。
Public method OnRestore 會引發的 Restore 事件。
Public method Provision 以本機伺服器,才能使用該物件所需進行的變更。 (Inherited from SPPersistedObject.)
Public method Remove 如果在集合中,已存在,但如果 URL 不存在,會傳回false ,而不是擲回例外狀況,則請從集合中刪除指定的 URL。
Public method SetRedirectUrl 設定時重新導向絕對 url,將特定區域產生逐步升級期間將會使用的 url。
Public method SetResponseUrl 將產生輸出的絕對 URL,將特定區域時所使用的 URL。
Public method ToString 會傳回所有階 (父項、 上二層,依此類推) 和物件的名稱與類型。 (Inherited from SPPersistedObject.)
Public method Uncache 釋放物件所使用的記憶體快取。 (Inherited from SPPersistedObject.)
Public method Unprovision 對本機伺服器時,需要清理之後刪除之物件所做的變更。 (Inherited from SPPersistedObject.)
Public method UnsetRedirectUrl 移除重新導向 url 從這個區域
Public method UnsetResponseUrl 會移除產生輸出的絕對 URL,將特定區域時所使用的 URL 對應。
Public method Update() 更新集合,並重建查閱快取。 (Overrides SPPersistedObject.Update().)
Public method Update(Boolean) 會使物件以儲存狀態,並傳播到的所有電腦的伺服器陣列,選擇性地擲回例外狀況,如果物件已存在設定存放區中的變更。 (Inherited from SPPersistedObject.)
Protected method UpdateParent 會包含SPPersistedObject,若有的話,來更新其狀態。 (Inherited from SPAutoSerializingObject.)
Protected method Validate 確認備用 URL 集合是可接受狀態之前呼叫Update()方法。 (Overrides SPPersistedObject.Validate().)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator 會傳回 object,可用來逐一查看集合中的項目。

Top

請參閱

參照

SPAlternateUrlCollection class

Microsoft.SharePoint.Administration namespace