Share via


ShareProvider Class

Definition

This class represents a custom provider which can be shared.

public ref class ShareProvider sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.DataTransfer.IShareProviderFactory, 262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ShareProvider final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.DataTransfer.IShareProviderFactory), 262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ShareProvider
function ShareProvider(title, displayIcon, backgroundColor, handler)
Public NotInheritable Class ShareProvider
Inheritance
Object Platform::Object IInspectable ShareProvider
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Constructors

ShareProvider(String, RandomAccessStreamReference, Color, ShareProviderHandler)

Creates a new ShareProvider object.

Properties

BackgroundColor

Gets the background color of the share provider.

DisplayIcon

Gets the display icon of the share provider.

Tag

Gets or sets the tag of the share provider.

Title

Gets the title of the share provider.

Applies to