Contains Method
Gets whether a IAsyncDataTransfer supports a specific format.
Definition
Namespace: Avalonia.Input
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public static bool Contains(
this IAsyncDataTransfer dataTransfer,
DataFormat format
)
<ExtensionAttribute>
Public Shared Function Contains (
dataTransfer As IAsyncDataTransfer,
format As DataFormat
) As Boolean
[<ExtensionAttribute>]
static member Contains :
dataTransfer : IAsyncDataTransfer *
format : DataFormat -> bool
Parameters
- IAsyncDataTransfer
- The IAsyncDataTransfer instance.
- DataFormat
- The format to check.
Return Value
Boolean
true if format is supported, false otherwise.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IAsyncDataTransfer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).