Skip to main content

TryGetRawAsync Method

Tries to get a value for a given format.

Definition

Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)

Task<Object?> TryGetRawAsync(
DataFormat format
)
View Source

Parameters

  DataFormat
The format to retrieve.

Return Value

Task(Object)
A value for format, or null if the format is not supported.

Remarks

Implementations of this method are expected to return a value matching the exact type of the generic argument of the underlying DataFormat(T).

To retrieve a typed value, use TryGetValue(T)(IDataTransferItem, DataFormat(T)).

See Also

Reference

IAsyncDataTransferItem Interface
Avalonia.Input Namespace
TryGetValueAsync(T)(IAsyncDataTransferItem, DataFormat(T))
TryGetValueAsync(T)(IAsyncDataTransfer, DataFormat(T))