Breyta

Deila með


DelimitedListTraceListener.GetSupportedAttributes Method

Definition

Returns the custom configuration file attribute supported by the delimited trace listener.

protected:
 override cli::array <System::String ^> ^ GetSupportedAttributes();
protected public:
 override cli::array <System::String ^> ^ GetSupportedAttributes();
protected override string[] GetSupportedAttributes ();
protected internal override string[] GetSupportedAttributes ();
override this.GetSupportedAttributes : unit -> string[]
Protected Overrides Function GetSupportedAttributes () As String()
Protected Friend Overrides Function GetSupportedAttributes () As String()

Returns

String[]

A string array that contains the single value "delimiter".

Remarks

A custom attribute is an attribute that is not inherited from the base class that can be used to set a property for the class. The custom attribute for DelimitedListTraceListener is used to set the Delimiter property.

The following .NET Framework application configuration file example shows the use of the delimiter attribute to set the Delimiter property:

<configuration>  
  <system.diagnostics>  
    <trace autoflush="false" indentsize="4">  
      <listeners>  
        <add name="delimitedListener"   
          type="System.Diagnostics.DelimitedListTraceListener"   
          delimiter=":"   
          initializeData="delimitedOutput.txt"   
          traceOutputOptions="ProcessId, DateTime" />  
        <remove name="Default" />  
      </listeners>  
    </trace>  
  </system.diagnostics>  
</configuration>  

Applies to