UnescapedXmlDiagnosticData クラス

定義

ユーザー指定のトレース データのログ記録用にエスケープされていない XML データを提供します。

public ref class UnescapedXmlDiagnosticData
public class UnescapedXmlDiagnosticData
type UnescapedXmlDiagnosticData = class
Public Class UnescapedXmlDiagnosticData
継承
UnescapedXmlDiagnosticData

次のコード例では、 UnescapedXmlDiagnosticData クラスの使用方法を示します。 このコード例は、 EventSchemaTraceListener クラスに提供されるより大きな例の一部です。

string testString = "<Test><InnerElement Val=\"1\" /><InnerElement Val=\"Data\"/><AnotherElement>11</AnotherElement></Test>";
UnescapedXmlDiagnosticData unXData = new UnescapedXmlDiagnosticData(testString);
ts.TraceData(TraceEventType.Error, 38, unXData);
Dim testString As String = "<Test><InnerElement Val=""1"" /><InnerElement Val=""Data""/><AnotherElement>11</AnotherElement></Test>"
Dim unXData As New UnescapedXmlDiagnosticData(testString)
ts.TraceData(TraceEventType.Error, 38, unXData)

注釈

このクラスは、 TraceData メソッドによって使用されます。 また、xml データを TraceData メソッドに渡すためにも使用できます。

Note

ユーザー指定のデータは、スキーマの有効性をチェックしません。

コンストラクター

名前 説明
UnescapedXmlDiagnosticData(String)

指定した XML データ文字列を使用して、 UnescapedXmlDiagnosticData クラスの新しいインスタンスを初期化します。

プロパティ

名前 説明
UnescapedXml

エスケープされていない XML データ文字列を取得または設定します。

メソッド

名前 説明
Equals(Object)

指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
ToString()

UnescapedXmlDiagnosticData オブジェクトの文字列形式を返します。

適用対象