DataPackageView.GetTextAsync | getTextAsync methods

This topic has not yet been rated - Rate this topic
Gets the text in the DataPackageView object.

Overload list

MethodDescription
GetTextAsync() Gets the text in the DataPackageView object.
GetTextAsync(String) Gets the text in the DataPackageView object.

Remarks

Windows Phone 8

This API is not implemented and will throw an exception if called.

Examples


var shareOperation = eventObject.detail.shareOperation;
if (shareOperation.data.contains(Windows.ApplicationModel.DataTransfer.StandardDataFormats.text)) {
    shareOperation.data.getTextAsync().done(function (text) {
            // To output the text using this example, 
            // you need a div tag with an id of "output" in your HTML file.
            document.getElementById("output").innerText = text;
        }, function (e) {
            displayError("Error retrieving Text format: " + e);
        }
    });
}


Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

See also

DataPackageView

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.