共用方式為


VpnCustomPromptOptionSelector 類別

定義

代表使用者所需的多重選擇UI控件提示。 這通常是下拉式方塊。 這會用於建構 VpnChannel.RequestCustomPromptAsync 方法中使用的自定義提示。

public ref class VpnCustomPromptOptionSelector sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class VpnCustomPromptOptionSelector final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class VpnCustomPromptOptionSelector final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class VpnCustomPromptOptionSelector
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VpnCustomPromptOptionSelector
Public NotInheritable Class VpnCustomPromptOptionSelector
繼承
Object Platform::Object IInspectable VpnCustomPromptOptionSelector
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)
應用程式功能
networkingVpnProvider

建構函式

VpnCustomPromptOptionSelector()

建構 物件,此物件代表要用於 VpnChannel.RequestCustomPrompt 方法中的多個選擇 UI 元素。

屬性

Compulsory

取得或設定使用者是否必須在這個專案中提供一些文字輸入,才能繼續的UI流程(下一個按鈕呈現灰色)。

DisplayName

取得或設定文字輸入UI專案的文字標籤。

Emphasized

取得或設定輸入UI元素是否強調

Options

取得顯示為多個選擇UI元素選項的字串清單。 外掛程式應該會擷取清單,並填入所需的字串(依呈現的順序)。

SelectedIndex

取得索引至使用者所選取之選項的選項字串向量。

適用於

另請參閱