PropertiesCollection 类

继承层次结构

System.Object
  Microsoft.VisualStudio.Services.WebApi.PropertiesCollection

命名空间:  Microsoft.VisualStudio.Services.WebApi
程序集:  Microsoft.VisualStudio.Services.WebApi(在 Microsoft.VisualStudio.Services.WebApi.dll 中)

语法

声明
<CollectionDataContractAttribute(Name := "Properties", ItemName := "Property", KeyName := "Key",  _
    ValueName := "Value")> _
Public NotInheritable Class PropertiesCollection _
    Implements IDictionary(Of String, Object),  _
    ICollection(Of KeyValuePair(Of String, Object)), IEnumerable(Of KeyValuePair(Of String, Object)),  _
    IEnumerable, ICollection
[CollectionDataContractAttribute(Name = "Properties", ItemName = "Property", KeyName = "Key", 
    ValueName = "Value")]
public sealed class PropertiesCollection : IDictionary<string, Object>, 
    ICollection<KeyValuePair<string, Object>>, IEnumerable<KeyValuePair<string, Object>>, 
    IEnumerable, ICollection

PropertiesCollection 类型公开以下成员。

构造函数

  名称 说明
公共方法 PropertiesCollection()
公共方法 PropertiesCollection(IDictionary<String, Object>)

页首

属性

  名称 说明
公共属性 Count
公共属性 Item
公共属性 Keys
公共属性 Values

页首

方法

  名称 说明
公共方法 Add
公共方法 Clear
公共方法 ContainsKey
公共方法 ContainsValue
公共方法 Equals (重写 Object.Equals(Object)。)
公共方法 GetHashCode (重写 Object.GetHashCode()。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 GetValue<T>
公共方法 Remove
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 TryGetValue(String, Object%)
公共方法 TryGetValue<T>(String, T%)

页首

显式接口实现  

  名称 说明
显式接口实现私有方法 ICollection<KeyValuePair<String, Object>>.Add
显式接口实现私有方法 ICollection<KeyValuePair<String, Object>>.Contains
显式接口实现私有方法 ICollection<KeyValuePair<String, Object>>.CopyTo
显式接口实现私有方法 ICollection.CopyTo
显式接口实现私有方法 IEnumerable<KeyValuePair<String, Object>>.GetEnumerator
显式接口实现私有方法 IEnumerable.GetEnumerator
显式接口实现私有属性 ICollection<KeyValuePair<String, Object>>.IsReadOnly
显式接口实现私有属性 ICollection.IsSynchronized
显式接口实现私有属性 IDictionary<String, Object>.Keys
显式接口实现私有方法 ICollection<KeyValuePair<String, Object>>.Remove
显式接口实现私有属性 ICollection.SyncRoot
显式接口实现私有属性 IDictionary<String, Object>.Values

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Services.WebApi 命名空间