FormatterBase.TopLevelPropertyBagBase.TryGetTopLevelProperty<T> 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.
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.