AzureCoreExtensions.ToObjectAsync<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 System.Threading.Tasks.ValueTask<T?> ToObjectAsync<T> (this BinaryData data, Azure.Core.Serialization.ObjectSerializer serializer, System.Threading.CancellationToken cancellationToken = default);
static member ToObjectAsync : BinaryData * Azure.Core.Serialization.ObjectSerializer * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<'T>
<Extension()>
Public Function ToObjectAsync(Of T) (data As BinaryData, serializer As ObjectSerializer, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of 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
ValueTask<T>
The data converted to the specified type.
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET