Clipboard.SetContentWithOptions(DataPackage, ClipboardContentOptions) Clipboard.SetContentWithOptions(DataPackage, ClipboardContentOptions) Clipboard.SetContentWithOptions(DataPackage, ClipboardContentOptions) Clipboard.SetContentWithOptions(DataPackage, ClipboardContentOptions) Clipboard.SetContentWithOptions(DataPackage, ClipboardContentOptions) Method

Definition

Sets the content that is stored in the clipboard object with options for the content.

public : static Platform::Boolean SetContentWithOptions(DataPackage content, ClipboardContentOptions options)
static bool SetContentWithOptions(DataPackage content, ClipboardContentOptions options) const;
public static bool SetContentWithOptions(DataPackage content, ClipboardContentOptions options)
Public Shared Function SetContentWithOptions(content As DataPackage, options As ClipboardContentOptions) As bool
var bool = Windows.ApplicationModel.DataTransfer.Clipboard.setContentWithOptions(content, options);

Parameters

content
DataPackage DataPackage DataPackage

Contains the content to store in the clipboard. If null, the clipboard is emptied.

options
ClipboardContentOptions ClipboardContentOptions ClipboardContentOptions

An object that specifies options for the clipboard content, such as whether the content is allowed in the clipboard history and whether it will be synced to other devices.

Returns

bool bool bool

Additional features and requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)