ExtensionPartRecord<T>.TryGetMetadata<TMetadata> 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.
Tries to get the given metadata name as T.
public bool TryGetMetadata<TMetadata> (string metadataName, out TMetadata? value);
member this.TryGetMetadata : string * 'Metadata -> bool
Public Function TryGetMetadata(Of TMetadata) (metadataName As String, ByRef value As TMetadata) As Boolean
Type Parameters
- TMetadata
Type to deserialize metadata value to.
Parameters
- metadataName
- String
Name of the metadata to search for.
- value
- TMetadata
Value to be returned.
Returns
true if metadata was found and deserialization was successful.