Back to Devexpress

SmartPasteBehavior.SmartPasteAsync(Byte[], String, CancellationToken) Method

wpf-devexpress-dot-aiintegration-dot-wpf-dot-smartpastebehavior-dot-smartpasteasync-x28-system-dot-byte-system-dot-string-system-dot-threading-dot-cancellationtoken-x29.md

latest2.2 KB
Original Source

SmartPasteBehavior.SmartPasteAsync(Byte[], String, CancellationToken) Method

Assigns the correct values from the specified string or binary content to the appropriate items.

Namespace : DevExpress.AIIntegration.Wpf

Assembly : DevExpress.AIIntegration.Wpf.v25.2.dll

NuGet Package : DevExpress.AIIntegration.Wpf

Declaration

csharp
public Task SmartPasteAsync(
    byte[] dataContent,
    string mediaType,
    CancellationToken token = default(CancellationToken)
)
vb
Public Function SmartPasteAsync(
    dataContent As Byte(),
    mediaType As String,
    token As CancellationToken = Nothing
) As Task

Parameters

NameTypeDescription
dataContentByte[]

The binary content to analyze.

| | mediaType | String |

The media type (MIME type) of the binary data.

|

Optional Parameters

NameTypeDefaultDescription
tokenCancellationTokennull

The cancellation token that allows the operation to be canceled if needed.

|

Returns

TypeDescription
Task

The task.

|

Remarks

Refer to the following help topic for additional information and examples: Smart Paste.

See Also

SmartPasteBehavior Class

SmartPasteBehavior Members

DevExpress.AIIntegration.Wpf Namespace