TryGetRaw Method
Tries to get a value for a given format.
Definition
Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public Object? TryGetRaw(
DataFormat format
)
Public Function TryGetRaw (
format As DataFormat
) As Object
abstract TryGetRaw :
format : DataFormat -> Object
override TryGetRaw :
format : DataFormat -> Object
Parameters
- DataFormat
- The format to retrieve.
Return Value
Object
A value for format, or null if the format is not supported.
Implements
IDataTransferItem.TryGetRaw(DataFormat)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
DataTransferItem Class
Avalonia.Input Namespace
TryGetValue(T)(IDataTransferItem, DataFormat(T))
TryGetValue(T)(IDataTransfer, DataFormat(T))