ExceptionPropertyCollection 类

表示属性的集合都具有关联的异常。

继承层次结构

System.Object
  Microsoft.TeamFoundation.Common.ExceptionPropertyCollection

命名空间:  Microsoft.TeamFoundation.Common
程序集:  Microsoft.TeamFoundation.Common(在 Microsoft.TeamFoundation.Common.dll 中)

语法

声明
Public NotInheritable Class ExceptionPropertyCollection _
    Implements IEnumerable(Of KeyValuePair(Of String, Object)),  _
    IEnumerable
public sealed class ExceptionPropertyCollection : IEnumerable<KeyValuePair<string, Object>>, 
    IEnumerable

ExceptionPropertyCollection 类型公开以下成员。

构造函数

  名称 说明
公共方法 ExceptionPropertyCollection 初始化 ExceptionPropertyCollection 选件类的新实例。

页首

属性

  名称 说明
公共属性 Count 获取此集合中属性的数目。

页首

方法

  名称 说明
公共方法 Copy(ExceptionPropertyCollection) 将指定的集合的属性到此集合中。
公共方法 Copy(ExceptionPropertyCollection, Boolean) 将指定的集合的属性到此集合中。
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
公共方法 GetHashCode 用作特定类型的哈希函数。 (继承自 Object。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 Remove 移除该集合中的属性与指定的名称。
公共方法 Set(String, Boolean) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, array<Boolean[]) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, Byte) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, array<Byte[]) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, Char) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, DateTime) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, array<DateTime[]) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, Decimal) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, array<Decimal[]) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, Double) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, array<Double[]) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, Guid) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, array<Guid[]) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, Int16) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, array<Int16[]) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, Int32) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, array<Int32[]) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, Int64) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, array<Int64[]) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, Single) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, array<Single[]) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, String) 设置具有指定名称的异常属性设置为指定值。
公共方法 Set(String, array<String[]) 设置具有指定名称的异常属性设置为指定值。
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 ToXml

页首

显式接口实现

  名称 说明
显式接口实现私有方法 IEnumerable<KeyValuePair<String, Object>>.GetEnumerator 获取此集合的枚举器。
显式接口实现私有方法 IEnumerable.GetEnumerator 获取此集合的枚举器。

页首

线程安全

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

请参见

参考

Microsoft.TeamFoundation.Common 命名空间