EventSource.GetTrait(String) Method
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 the trait value associated with the specified key.
public:
System::String ^ GetTrait(System::String ^ key);
public string GetTrait (string key);
public string? GetTrait (string key);
member this.GetTrait : string -> string
Public Function GetTrait (key As String) As String
Parameters
- key
- String
The key of the trait to get.
Returns
The trait value associated with the specified key. If the key is not found, returns null
.
Remarks
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.
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.