Skip to main content
DataPackagePropertySet.ContentSourceWebLink | contentSourceWebLink property

Applies to Windows and Windows Phone

Provides a web link to shared content that's currently displayed in the app.

Syntax


var contentSourceWebLink = dataPackagePropertySet.contentSourceWebLink;
dataPackagePropertySet.contentSourceWebLink = contentSourceWebLink;

public Uri ContentSourceWebLink { get; set; }

Public Property ContentSourceWebLink As Uri

public:
property Uri^ ContentSourceWebLink { 
   Uri^ get();
   void set (Uri^ value);
}

Property value

Type: Windows.Foundation.Uri [JavaScript] | System.Uri [.NET] | Windows::Foundation::Uri [C++]

The URI of the web link to shared content.

Remarks

ContentSourceWebLink is a companion property that you use to attribute shared content. It's shared when the app provides a web link to the content being shared. When the user makes an explicit selection, the WebLink format isn't populated, because the value for the WebLink format isn't the same as the user's selection. Populating this info doesn't mean that the web page is the user's selection, only that the content comes from there.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

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

DataPackagePropertySet