AzureCoreExtensions.ToObject<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.
Converts the BinaryData to the specified type using the provided ObjectSerializer.
public static T? ToObject<T> (this BinaryData data, Azure.Core.Serialization.ObjectSerializer serializer, System.Threading.CancellationToken cancellationToken = default);
static member ToObject : BinaryData * Azure.Core.Serialization.ObjectSerializer * System.Threading.CancellationToken -> 'T
<Extension()>
Public Function ToObject(Of T) (data As BinaryData, serializer As ObjectSerializer, Optional cancellationToken As CancellationToken = Nothing) As T
Type Parameters
- T
The type that the data should be converted to.
Parameters
- data
- BinaryData
The BinaryData instance to convert.
- serializer
- ObjectSerializer
The serializer to use when deserializing the data.
- cancellationToken
- CancellationToken
The CancellationToken to use during deserialization.
Returns
T
The data converted to the specified type.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
Azure SDK for .NET