DataCollectorMessageInfo Class

Represents an error message or warning message for diagnostic data adapters.

System.Object
  Microsoft.VisualStudio.TestTools.Common.DataCollectorMessageInfo
    Microsoft.VisualStudio.TestTools.Common.DataCollectorExceptionMessageInfo

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

[SerializableAttribute]
public class DataCollectorMessageInfo : IXmlTestStore, 
	IXmlTestStoreCustom

The DataCollectorMessageInfo type exposes the following members.

  NameDescription
Protected methodDataCollectorMessageInfoInitializes a new instance of the DataCollectorMessageInfo class.
Top

  NameDescription
Public propertyAgentNameGets or sets the display name of the agent for the data collector that sent the message.
Public propertyDataCollectorFriendlyNameGets or sets the name of the diagnostic data adapter that sent the message.
Public propertyDataCollectorUriGets or sets the uniform resource identifier (URI) for the diagnostic data adapter that sent the message.
Protected propertyElementNameGets the name of the tag to use to persist this object ("DataCollectorMessage").
Public propertyLevelGets or sets the severity level of the message.
Public propertyTextGets or sets the text of the message.
Public propertyTimestampGets or sets the date and time that the message was created.
Top

  NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodLoadLoads the object from the provided XML element.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodSaveSaves this object under the provided XML element.
Public methodToStringReturns a string representation of the message and its properties. (Overrides Object.ToString().)
Top

  NameDescription
Explicit interface implemetationPrivate methodIXmlTestStore.LoadLoads the object from the provided XML element.
Explicit interface implemetationPrivate methodIXmlTestStore.SaveSaves this object under the provided XML element.
Explicit interface implemetationPrivate propertyIXmlTestStoreCustom.ElementNameGets the name of the tag to use to persist this object.
Explicit interface implemetationPrivate propertyIXmlTestStoreCustom.NamespaceUriGets the XML namespace to use to store the element.
Top

Although this class can be used in your custom diagnostic data adapter, it is instantiated and populated only by the Visual Studio 2010 Professional testing framework.

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

Community Additions

ADD
Show: