Sdílet prostřednictvím


DataCollectorMessageInfo Class

Definition

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

public ref class DataCollectorMessageInfo : Microsoft::VisualStudio::TestTools::Common::Xml::IXmlTestStore, Microsoft::VisualStudio::TestTools::Common::Xml::IXmlTestStoreCustom
[System.Serializable]
public class DataCollectorMessageInfo : Microsoft.VisualStudio.TestTools.Common.Xml.IXmlTestStore, Microsoft.VisualStudio.TestTools.Common.Xml.IXmlTestStoreCustom
[<System.Serializable>]
type DataCollectorMessageInfo = class
    interface IXmlTestStore
    interface IXmlTestStoreCustom
Public Class DataCollectorMessageInfo
Implements IXmlTestStore, IXmlTestStoreCustom
Inheritance
DataCollectorMessageInfo
Derived
Attributes
Implements

Constructors

DataCollectorMessageInfo()

Initializes a new instance of the DataCollectorMessageInfo class.

Properties

AgentName

Gets or sets the display name of the agent for the data collector that sent the message.

DataCollectorFriendlyName

Gets or sets the name of the diagnostic data adapter that sent the message.

DataCollectorUri

Gets or sets the uniform resource identifier (URI) for the diagnostic data adapter that sent the message.

ElementName

Gets the name of the tag to use to persist this object ("DataCollectorMessage").

Level

Gets or sets the severity level of the message.

Text

Gets or sets the text of the message.

Timestamp

Gets or sets the date and time that the message was created.

Methods

Load(XmlElement, XmlTestStoreParameters)

Loads the object from the provided XML element.

Save(XmlElement, XmlTestStoreParameters)

Saves this object under the provided XML element.

ToString()

Returns a string representation of the message and its properties.

Explicit Interface Implementations

IXmlTestStore.Load(XmlElement, XmlTestStoreParameters)

Loads the object from the provided XML element.

IXmlTestStore.Save(XmlElement, XmlTestStoreParameters)

Saves this object under the provided XML element.

IXmlTestStoreCustom.ElementName

Gets the name of the tag to use to persist this object.

IXmlTestStoreCustom.NamespaceUri

Gets the XML namespace to use to store the element.

Applies to