Share via


LoggingChannel Constructors

Definition

Overloads

LoggingChannel(String)

This constructor creates a LoggingChannel in Windows 8.1 compatibility mode.

LoggingChannel(String, LoggingChannelOptions)

Initializes a new instance of the LoggingChannel class with the specified options.

LoggingChannel(String, LoggingChannelOptions, Guid)

Initializes a new instance of the LoggingChannel class with the specified options and channel ID.

LoggingChannel(String)

This constructor creates a LoggingChannel in Windows 8.1 compatibility mode.

public:
 LoggingChannel(Platform::String ^ name);
/// [Windows.Foundation.Metadata.Deprecated("This constructor creates a LoggingChannel in Windows 8.1 compatibility mode. Prefer the two-parameter constructor.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
 LoggingChannel(winrt::hstring const& name);
/// [Windows.Foundation.Metadata.Deprecated("This constructor creates a LoggingChannel in Windows 8.1 compatibility mode. Prefer the two-parameter constructor.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
 LoggingChannel(winrt::hstring const& name);
[Windows.Foundation.Metadata.Deprecated("This constructor creates a LoggingChannel in Windows 8.1 compatibility mode. Prefer the two-parameter constructor.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public LoggingChannel(string name);
[Windows.Foundation.Metadata.Deprecated("This constructor creates a LoggingChannel in Windows 8.1 compatibility mode. Prefer the two-parameter constructor.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public LoggingChannel(string name);
function LoggingChannel(name)
Public Sub New (name As String)

Parameters

name
String

Platform::String

winrt::hstring

The name of the logging channel.

Attributes

Remarks

This constructor creates a LoggingChannel in Windows 8.1 compatibility mode. For a description of the differences between Windows 8.1 compatibility mode and the new behavior supported by Windows 10, see LoggingChannel.

Windows 10 This constructor should only be used if you need compatibility with Windows 8.1. For Windows 10 and later, use LoggingChannel(String, LoggingChannelOptions) or LoggingChannel(String, LoggingChannelOptions, Guid).

See also

Applies to

LoggingChannel(String, LoggingChannelOptions)

Initializes a new instance of the LoggingChannel class with the specified options.

public:
 LoggingChannel(Platform::String ^ name, LoggingChannelOptions ^ options);
 LoggingChannel(winrt::hstring const& name, LoggingChannelOptions const& options);
public LoggingChannel(string name, LoggingChannelOptions options);
function LoggingChannel(name, options)
Public Sub New (name As String, options As LoggingChannelOptions)

Parameters

name
String

Platform::String

winrt::hstring

The name of the logging channel.

options
LoggingChannelOptions

The channel options. Pass null to specify the default options.

See also

Applies to

LoggingChannel(String, LoggingChannelOptions, Guid)

Initializes a new instance of the LoggingChannel class with the specified options and channel ID.

public:
 LoggingChannel(Platform::String ^ name, LoggingChannelOptions ^ options, Platform::Guid id);
 LoggingChannel(winrt::hstring const& name, LoggingChannelOptions const& options, winrt::guid const& id);
public LoggingChannel(string name, LoggingChannelOptions options, Guid id);
function LoggingChannel(name, options, id)
Public Sub New (name As String, options As LoggingChannelOptions, id As Guid)

Parameters

name
String

Platform::String

winrt::hstring

The name of the logging channel.

options
LoggingChannelOptions

The channel options. Pass null to specify the default options.

id
Guid

Platform::Guid

winrt::guid

The channel identifier to use instead of the automatically generated identifier.

See also

Applies to