ShareProvider 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立新的 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
共用提供者的處理常式。