EventSourceAttribute.Guid Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the event source identifier.
public:
property System::String ^ Guid { System::String ^ get(); void set(System::String ^ value); };
public string Guid { get; set; }
public string? Guid { get; set; }
member this.Guid : string with get, set
Public Property Guid As String
Property Value
The event source identifier.
Remarks
In standard usage, you don't need to specify a GUID when defining an event source or referring to it, because a GUID is implicitly derived from the name of the event source class. Explicitly defining a GUID is discouraged, except when upgrading existing ETW providers to using event sources.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.