Skip to main content

Contains Method

Gets whether a IAsyncDataTransfer supports a specific format.

Definition​

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

public static bool Contains(
this IAsyncDataTransfer dataTransfer,
DataFormat format
)

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).

See Also​

Reference​

AsyncDataTransferExtensions Class
Avalonia.Input Namespace