SPAlternateUrlCollectionManager 成员

提供一些方法,可用于在服务器场中执行所有的SPAlternateUrlCollection对象上的操作。

SPAlternateUrlCollectionManager 类型公开以下成员。

属性

  名称 说明
公共属性 Count 获取集合中对象的数目。 (从 SPPersistedObjectCollection<T> 继承。)
公共属性 IsEmpty 获取一个布尔值,该值指示集合中是否包含任何对象。 (从 SPPersistedObjectCollection<T> 继承。)
公共属性 Item[Guid] 获取基于指定的 GUID 集合中的持久的对象。 (从 SPPersistedObjectCollection<T> 继承。)
公共属性 Item[String] 获取基于指定的名称在集合中的持久的对象。 (从 SPPersistedObjectCollection<T> 继承。)
受保护的属性 Parent 获取声明此集合的父对象。 (从 SPPersistedObjectCollection<T> 继承。)

页首

方法

  名称 说明
公共方法 Add 将对象添加到集合中。 (从 SPPersistedChildCollection<T> 继承。)
公共方法 DeserializeUrlFromStorage 到指定的 URL 区域的相应 URL,反序列化指定的字符串。
公共方法 Ensure 将对象添加到集合,而且,如果该对象已经存在,与现有的对象的数据重新初始化它。 (从 SPPersistedChildCollection<T> 继承。)
公共方法 Equals (从 Object 继承。)
受保护的方法 Finalize (从 Object 继承。)
公共方法 GetEnumerator 获取一个可用于循环访问集合的枚举器。 (从 SPPersistedObjectCollection<T> 继承。)
公共方法 GetHashCode (从 Object 继承。)
公共方法 GetType (从 Object 继承。)
公共方法 GetValue<U>() 从具有指定的类型和默认的名称的集合中检索对象。 (从 SPPersistedObjectCollection<T> 继承。)
公共方法 GetValue<U>(Guid) 从具有指定的 ID 和类型的集合中检索对象。 (从 SPPersistedObjectCollection<T> 继承。)
公共方法 GetValue<U>(String) 从具有指定的名称和类型的集合中检索对象。 (从 SPPersistedObjectCollection<T> 继承。)
公共方法 LookupAlternateUrl 返回的SPAlternateUrl对象,其中包含指定的 URL。
受保护的方法 MemberwiseClone (从 Object 继承。)
公共方法 RebaseUriWithAlternateUri(Uri) 替换映射替代访问 URI 方案、 主机和端口的指定的 URI。
公共方法 RebaseUriWithAlternateUri(Uri, Nullable<SPUrlZone>) 替换为指定的区域的备用访问 URI 方案、 主机和端口的指定的 URI。
公共方法 Remove 删除集合中的对象。 (从 SPPersistedChildCollection<T> 继承。)
公共方法 SerializeUrlForStorage 序列化指定的 URL 的格式适用于持久性存储区中。
公共方法 ToString (从 Object 继承。)

页首

显式 接口 实现

  名称 说明
显式接口实现私有方法 IEnumerable<SPAlternateUrl>.GetEnumerator() 获取一个对象,它可以循环访问集合。
显式接口实现私有方法 IEnumerable.GetEnumerator 获取一个对象,它可以循环访问集合。

页首

另请参阅

引用

SPAlternateUrlCollectionManager 类

Microsoft.SharePoint.Administration 命名空间