LoggingChannel 构造函数

定义

重载

LoggingChannel(String)

此构造函数在Windows 8.1兼容模式下创建 LoggingChannel

LoggingChannel(String, LoggingChannelOptions)

使用指定的选项初始化 LoggingChannel 类的新实例。

LoggingChannel(String, LoggingChannelOptions, Guid)

使用指定的选项和通道 ID 初始化 LoggingChannel 类的新实例。

LoggingChannel(String)

此构造函数在Windows 8.1兼容模式下创建 LoggingChannel

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)

参数

name
String

Platform::String

winrt::hstring

日志记录通道的名称。

属性

注解

此构造函数在Windows 8.1兼容模式下创建 LoggingChannel。 有关Windows 8.1兼容模式与 Windows 10 支持的新行为之间的差异的说明,请参阅 LoggingChannel

Windows 10仅当需要与 Windows 8.1 兼容时,才应使用此构造函数。 对于Windows 10及更高版本,请使用 LoggingChannel (String、LoggingChannelOptions) LoggingChannel (String、LoggingChannelOptions、Guid)

另请参阅

适用于

LoggingChannel(String, LoggingChannelOptions)

使用指定的选项初始化 LoggingChannel 类的新实例。

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)

参数

name
String

Platform::String

winrt::hstring

日志记录通道的名称。

options
LoggingChannelOptions

通道选项。 传递 null 以指定默认选项。

另请参阅

适用于

LoggingChannel(String, LoggingChannelOptions, Guid)

使用指定的选项和通道 ID 初始化 LoggingChannel 类的新实例。

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)

参数

name
String

Platform::String

winrt::hstring

日志记录通道的名称。

options
LoggingChannelOptions

通道选项。 传递 null 以指定默认选项。

id
Guid

Platform::Guid

winrt::guid

要使用的通道标识符,而不是自动生成的标识符。

另请参阅

适用于