Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataRequest.FailWithDisplayText | failWithDisplayText method

Applies to Windows and Windows Phone

Cancels the sharing operation and supplies an error string to display to the user.

Syntax


dataRequest.failWithDisplayText(value);

Parameters

value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The text to display to the user.

Remarks

Use the FailWithDisplayText method when your app is unable to supply a DataPackage to a target app. This method cancels the share operation and supplies a text message to the target app. The target app can then display this text to the user to explain why the share operation failed.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.DataTransfer
Windows::ApplicationModel::DataTransfer [C++]

Metadata

Windows.winmd

See also

DataRequest

 

 

Show:
© 2014 Microsoft