Share via


ILoggingConfigurationSendToWmiTraceListener.WithTraceOptions Method

Specifies which options, or elements, should be included in messages send by this WmiTraceListener.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Fluent
Assembly:  Microsoft.Practices.EnterpriseLibrary.Logging (in Microsoft.Practices.EnterpriseLibrary.Logging.dll)

Syntax

'Declaration
Function WithTraceOptions ( _
    traceOptions As TraceOptions _
) As ILoggingConfigurationSendToWmiTraceListener
ILoggingConfigurationSendToWmiTraceListener WithTraceOptions(
    TraceOptions traceOptions
)
ILoggingConfigurationSendToWmiTraceListener^ WithTraceOptions(
    TraceOptions traceOptions
)
function WithTraceOptions(
    traceOptions : TraceOptions
) : ILoggingConfigurationSendToWmiTraceListener

Parameters

Return Value

Fluent interface that can be used to further configure the created WmiTraceListenerData.

See Also

ILoggingConfigurationSendToWmiTraceListener Interface

Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Fluent Namespace

Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.WmiTraceListener

Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.WmiTraceListenerData

System.Diagnostics.TraceOptions