次の方法で共有


FakeLogRecord.GetStructuredStateValue(String) Method

Definition

Gets the value of a particular key value pair in the record's structured state.

public:
 System::String ^ GetStructuredStateValue(System::String ^ key);
public string? GetStructuredStateValue (string key);
member this.GetStructuredStateValue : string -> string
Public Function GetStructuredStateValue (key As String) As String

Parameters

key
String

The key to search for in the record's structured state.

Returns

The value associated with the key, or null if the key was not found. If the structured state contains multiple entries with the same key, the value associated with the first matching key encountered is returned.

Applies to