DataPackage.SetText | setText method

Applies to Windows and Windows Phone

Sets the text that a DataPackage contains.

Syntax


Public Sub SetText(
  value As String 
)

Parameters

value

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

The text.

Remarks

This method sets the text value for StandardDataFormats.Text. It's the equivalent of calling dataPackage.setText(StandardDataFormats.Text).

Text is one of the data types that the DataPackage object supports directly. See the StandardDataFormats class for information on other supported data types.

Examples

No code example is currently available or this language may not be supported.

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

DataPackage

 

 

Show:
© 2014 Microsoft