Share via


LoggingChannel Konstruktoren

Definition

Überlädt

LoggingChannel(String)

Dieser Konstruktor erstellt einen LoggingChannel im Windows 8.1 Kompatibilitätsmodus.

LoggingChannel(String, LoggingChannelOptions)

Initialisiert eine neue instance der LoggingChannel-Klasse mit den angegebenen Optionen.

LoggingChannel(String, LoggingChannelOptions, Guid)

Initialisiert eine neue instance der LoggingChannel-Klasse mit den angegebenen Optionen und der angegebenen Kanal-ID.

LoggingChannel(String)

Dieser Konstruktor erstellt einen LoggingChannel im Windows 8.1 Kompatibilitätsmodus.

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)

Parameter

name
String

Platform::String

winrt::hstring

Der Name des Protokollierungskanals.

Attribute

Hinweise

Dieser Konstruktor erstellt einen LoggingChannel im Windows 8.1 Kompatibilitätsmodus. Eine Beschreibung der Unterschiede zwischen Windows 8.1 Kompatibilitätsmodus und dem neuen Von Windows 10 unterstützten Verhalten finden Sie unter LoggingChannel.

Windows 10 Dieser Konstruktor sollte nur verwendet werden, wenn Sie Kompatibilität mit Windows 8.1 benötigen. Verwenden Sie für Windows 10 und höher LoggingChannel(String, LoggingChannelOptions) oder LoggingChannel(String, LoggingChannelOptions, Guid).

Weitere Informationen

Gilt für:

LoggingChannel(String, LoggingChannelOptions)

Initialisiert eine neue instance der LoggingChannel-Klasse mit den angegebenen Optionen.

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)

Parameter

name
String

Platform::String

winrt::hstring

Der Name des Protokollierungskanals.

options
LoggingChannelOptions

Die Kanaloptionen. Übergeben Sie NULL , um die Standardoptionen anzugeben.

Weitere Informationen

Gilt für:

LoggingChannel(String, LoggingChannelOptions, Guid)

Initialisiert eine neue instance der LoggingChannel-Klasse mit den angegebenen Optionen und der angegebenen Kanal-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)

Parameter

name
String

Platform::String

winrt::hstring

Der Name des Protokollierungskanals.

options
LoggingChannelOptions

Die Kanaloptionen. Übergeben Sie NULL , um die Standardoptionen anzugeben.

id
Guid

Platform::Guid

winrt::guid

Der Kanalbezeichner, der anstelle des automatisch generierten Bezeichners verwendet werden soll.

Weitere Informationen

Gilt für: