SPUsageReceiverDefinitionCollection 成员

使用接收方定义的集合。

SPUsageReceiverDefinitionCollection 类型公开以下成员。

属性

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

页首

方法

  名称 说明
公共方法 Add(Type) 将接收器定义添加到此集合中。
公共方法 Add(SPUsageReceiverDefinition) 将接收器定义添加到此集合中。 (覆盖 SPPersistedChildCollection<T>.Add(T)。)
公共方法 Add(String, String) 将接收器定义添加到此集合中。
公共方法 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> 继承。)
受保护的方法 MemberwiseClone (从 Object 继承。)
公共方法 Remove(Guid) 删除集合中的对象。 (从 SPPersistedChildCollection<T> 继承。)
公共方法 Remove(Type) 删除接收方与提供的使用的接收器类型关联的定义。
公共方法 Remove(SPUsageReceiverDefinition) 从此集合中移除的接收器定义。
公共方法 ToString (从 Object 继承。)

页首

显式 接口 实现

  名称 说明
显式接口实现私有方法 IEnumerable.GetEnumerator 返回可枚举此列表中的所有项目。 (从 SPPersistedObjectCollection<T> 继承。)

页首

另请参阅

引用

SPUsageReceiverDefinitionCollection 类

Microsoft.SharePoint.Administration 命名空间