Condividi tramite


ExceptionPropertyCollection Class

Represents a collection of properties associated with an exception.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Common.ExceptionPropertyCollection

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

Syntax

'Dichiarazione
Public NotInheritable Class ExceptionPropertyCollection _
    Implements IEnumerable(Of KeyValuePair(Of String, Object)),  _
    IEnumerable
public sealed class ExceptionPropertyCollection : IEnumerable<KeyValuePair<string, Object>>, 
    IEnumerable
public ref class ExceptionPropertyCollection sealed : IEnumerable<KeyValuePair<String^, Object^>>, 
    IEnumerable
[<Sealed>]
type ExceptionPropertyCollection =  
    class
        interface IEnumerable<KeyValuePair<string, Object>>
        interface IEnumerable
    end
public final class ExceptionPropertyCollection implements IEnumerable<KeyValuePair<String, Object>>, IEnumerable

The ExceptionPropertyCollection type exposes the following members.

Constructors

  Name Description
Public method ExceptionPropertyCollection Initializes a new instance of the ExceptionPropertyCollection class.

Top

Properties

  Name Description
Public property Count Gets the number of properties in this collection.

Top

Methods

  Name Description
Public method Copy(ExceptionPropertyCollection) Copies the properties from the specified collection to this collection.
Public method Copy(ExceptionPropertyCollection, Boolean) Copies the properties from the specified collection to this collection.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes the property in this collection with the specified name.
Public method Set(String, Boolean) Sets the exception property with the specified name to the specified value.
Public method Set(String, array<Boolean[]) Sets the exception property with the specified name to the specified value.
Public method Set(String, Byte) Sets the exception property with the specified name to the specified value.
Public method Set(String, array<Byte[]) Sets the exception property with the specified name to the specified value.
Public method Set(String, Char) Sets the exception property with the specified name to the specified value.
Public method Set(String, DateTime) Sets the exception property with the specified name to the specified value.
Public method Set(String, array<DateTime[]) Sets the exception property with the specified name to the specified value.
Public method Set(String, Decimal) Sets the exception property with the specified name to the specified value.
Public method Set(String, array<Decimal[]) Sets the exception property with the specified name to the specified value.
Public method Set(String, Double) Sets the exception property with the specified name to the specified value.
Public method Set(String, array<Double[]) Sets the exception property with the specified name to the specified value.
Public method Set(String, Guid) Sets the exception property with the specified name to the specified value.
Public method Set(String, array<Guid[]) Sets the exception property with the specified name to the specified value.
Public method Set(String, Int16) Sets the exception property with the specified name to the specified value.
Public method Set(String, array<Int16[]) Sets the exception property with the specified name to the specified value.
Public method Set(String, Int32) Sets the exception property with the specified name to the specified value.
Public method Set(String, array<Int32[]) Sets the exception property with the specified name to the specified value.
Public method Set(String, Int64) Sets the exception property with the specified name to the specified value.
Public method Set(String, array<Int64[]) Sets the exception property with the specified name to the specified value.
Public method Set(String, Single) Sets the exception property with the specified name to the specified value.
Public method Set(String, array<Single[]) Sets the exception property with the specified name to the specified value.
Public method Set(String, String) Sets the exception property with the specified name to the specified value.
Public method Set(String, array<String[]) Sets the exception property with the specified name to the specified value.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable<KeyValuePair<String, Object>>.GetEnumerator Gets an enumerator for this collection.
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Gets an enumerator for this collection.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Common Namespace