Delen via


LoggingChannel.Id Property

Definition

Returns the provider identifier for this channel.

public:
 property Platform::Guid Id { Platform::Guid get(); };
winrt::guid Id();
public Guid Id { get; }
var guid = loggingChannel.id;
Public ReadOnly Property Id As Guid

Property Value

Guid

Platform::Guid

winrt::guid

The provider identifier for this channel.

Remarks

The value of the Id depends on how the LoggingChannel is constructed as described in the following table:

Constructor used The value of Id
LoggingChannel(String) The channel will be operating in Windows 8.1 compatibility mode and will return 4bd2826e-54a1-4ba9-bf63-92b73ea1ac4a which is the GUID for the Microsoft-Windows-Diagnostics-LoggingChannel manifest.
LoggingChannel(String, LoggingChannelOptions) The GUID will be determined by hashing the name parameter passed to the LoggingChannel constructor.
LoggingChannel(String, LoggingChannelOptions, Guid) The value is the same as the Id parameter passed to the LoggingChannel constructor.

Applies to