Share via


FormatterBase.TopLevelPropertyBagBase.TryGetTopLevelProperty<T> Method

Definition

Deserializes the value of a top-level property.

protected internal abstract bool TryGetTopLevelProperty<T>(string name, out T value);
abstract member TryGetTopLevelProperty : string * 'T -> bool
Protected Friend MustOverride Function TryGetTopLevelProperty(Of T) (name As String, ByRef value As T) As Boolean

Type Parameters

T

The type of object expected by the caller.

Parameters

name
String

The name of the top-level property.

value
T

Receives the value of the property.

Returns

A value indicating whether the property exists.

Exceptions

A formatter-specific exception may be thrown if the property exists but the value cannot be deserialized to a T.

Applies to