共用方式為


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

共用提供者的處理常式。

適用於