ShareProvider 构造函数

定义

创建新的 ShareProvider 对象。

public:
 ShareProvider(Platform::String ^ title, RandomAccessStreamReference ^ displayIcon, Color backgroundColor, ShareProviderHandler ^ handler);
 ShareProvider(winrt::hstring const& title, RandomAccessStreamReference const& displayIcon, Color const& backgroundColor, ShareProviderHandler const& handler);
public ShareProvider(string title, RandomAccessStreamReference displayIcon, Color backgroundColor, ShareProviderHandler handler);
function ShareProvider(title, displayIcon, backgroundColor, handler)
Public Sub New (title As String, displayIcon As RandomAccessStreamReference, backgroundColor As Color, handler As ShareProviderHandler)

参数

title
String

Platform::String

winrt::hstring

共享提供程序的标题。

displayIcon
RandomAccessStreamReference

共享提供程序的显示图标。

backgroundColor
Color

共享提供程序的背景色。

handler
ShareProviderHandler

共享提供程序的处理程序。

适用于