Freigeben über


FormatterBase.JsonRpcErrorBase.TryGetTopLevelProperty<T> Method

Definition

Retrieves a top-level property from an incoming message that is an extension to the JSON-RPC specification.

public override bool TryGetTopLevelProperty<T>(string name, out T value);
override this.TryGetTopLevelProperty : string * 'T -> bool
Public Overrides Function TryGetTopLevelProperty(Of T) (name As String, ByRef value As T) As Boolean

Type Parameters

T

The type to deserialize the value as, if it is present.

Parameters

name
String

The name of the top-level property.

value
T

Receives the deserialized value if the IJsonRpcMessageFormatter supports reading such properties and the property is present in the message. Otherwise, this parameter is set to its default value.

Returns

true if the IJsonRpcMessageFormatter supports this extensibility and the property was present on the message; otherwise false.

Applies to