The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
EventSource::GetTrait Method (String^)
.NET Framework (current version)
Gets the trait value associated with the specified key.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- key
-
Type:
System::String^
The key of the trait to get.
Return Value
Type: System::String^The trait value associated with the specified key. If the key is not found, returns null.
Traits provide additional information for an event and are interpreted by an event listener. Traits are specified as key-value pairs when the event source is constructed.
Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6
Available since 10
.NET Framework
Available since 4.6
Show: