XamlValueConverter<TConverterBase> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 XamlValueConverter<TConverterBase> 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| XamlValueConverter<TConverterBase>(Type, XamlType) |
根據實作XamlValueConverter<TConverterBase>的轉換器及目標/目的類型Type初始化該XamlValueConverter<TConverterBase>類別的新實例。 |
| XamlValueConverter<TConverterBase>(Type, XamlType, String) |
根據實作XamlValueConverter<TConverterBase>目標/目的類型Type及字串名稱的轉換器,初始化類別的新XamlValueConverter<TConverterBase>實例。 |
XamlValueConverter<TConverterBase>(Type, XamlType)
根據實作XamlValueConverter<TConverterBase>的轉換器及目標/目的類型Type初始化該XamlValueConverter<TConverterBase>類別的新實例。
public:
XamlValueConverter(Type ^ converterType, System::Xaml::XamlType ^ targetType);
public XamlValueConverter(Type converterType, System.Xaml.XamlType targetType);
new System.Xaml.Schema.XamlValueConverter<'ConverterBase (requires 'ConverterBase : null)> : Type * System.Xaml.XamlType -> System.Xaml.Schema.XamlValueConverter<'ConverterBase (requires 'ConverterBase : null)>
Public Sub New (converterType As Type, targetType As XamlType)
參數
- targetType
- XamlType
適用於
XamlValueConverter<TConverterBase>(Type, XamlType, String)
根據實作XamlValueConverter<TConverterBase>目標/目的類型Type及字串名稱的轉換器,初始化類別的新XamlValueConverter<TConverterBase>實例。
public:
XamlValueConverter(Type ^ converterType, System::Xaml::XamlType ^ targetType, System::String ^ name);
public XamlValueConverter(Type converterType, System.Xaml.XamlType targetType, string name);
new System.Xaml.Schema.XamlValueConverter<'ConverterBase (requires 'ConverterBase : null)> : Type * System.Xaml.XamlType * string -> System.Xaml.Schema.XamlValueConverter<'ConverterBase (requires 'ConverterBase : null)>
Public Sub New (converterType As Type, targetType As XamlType, name As String)
參數
- targetType
- XamlType
- name
- String
弦名。
例外狀況
三個參數皆為 null (至少一個必須非零)。
備註
若 name 提供為 null,則根據 converterType 或 targetType產生預設名稱。