XamlDirective コンストラクター

定義

XamlDirective クラスの新しいインスタンスを初期化します。

オーバーロード

XamlDirective(String, String)

名前および単一の XAML 名前空間の値を指定して、XamlDirective クラスの新しいインスタンスを初期化します。 このシグネチャは、ディレクティブに対する IsUnknowntrue を報告することが必要であるか、または予期される場合にのみ使用します。

XamlDirective(IEnumerable<String>, String, XamlType, XamlValueConverter<TypeConverter>, AllowedMemberLocations)

XamlDirective のケースの値ごとに値を指定して、XamlDirective クラスの新しいインスタンスを初期化します。

XamlDirective(String, String)

名前および単一の XAML 名前空間の値を指定して、XamlDirective クラスの新しいインスタンスを初期化します。 このシグネチャは、ディレクティブに対する IsUnknowntrue を報告することが必要であるか、または予期される場合にのみ使用します。

public:
 XamlDirective(System::String ^ xamlNamespace, System::String ^ name);
public XamlDirective (string xamlNamespace, string name);
new System.Xaml.XamlDirective : string * string -> System.Xaml.XamlDirective
Public Sub New (xamlNamespace As String, name As String)

パラメーター

xamlNamespace
String

この XamlDirective が存在できるプライマリ XAML 名前空間。

name
String

XamlDirective の識別名。

注釈

重要

コンストラクターのこのシグネチャは、常に XAML 型システムのレポートtrueを行うIsUnknownディレクティブの識別子を生成します。 必要な情報 (バッキング型と変換用のテキスト構文情報項目) が使用可能で、ディレクティブを適用できる識別子が必要な場合は、代わりにコンストラクターシグネチャを XamlDirective.XamlDirective 使用します。

このシグネチャを使用する場合、インスタンスの AllowedLocation 値は ; で AnyType 値と TypeConverter 値は両方とも nullです。

適用対象

XamlDirective(IEnumerable<String>, String, XamlType, XamlValueConverter<TypeConverter>, AllowedMemberLocations)

XamlDirective のケースの値ごとに値を指定して、XamlDirective クラスの新しいインスタンスを初期化します。

public:
 XamlDirective(System::Collections::Generic::IEnumerable<System::String ^> ^ xamlNamespaces, System::String ^ name, System::Xaml::XamlType ^ xamlType, System::Xaml::Schema::XamlValueConverter<System::ComponentModel::TypeConverter ^> ^ typeConverter, System::Xaml::Schema::AllowedMemberLocations allowedLocation);
public XamlDirective (System.Collections.Generic.IEnumerable<string> xamlNamespaces, string name, System.Xaml.XamlType xamlType, System.Xaml.Schema.XamlValueConverter<System.ComponentModel.TypeConverter> typeConverter, System.Xaml.Schema.AllowedMemberLocations allowedLocation);
new System.Xaml.XamlDirective : seq<string> * string * System.Xaml.XamlType * System.Xaml.Schema.XamlValueConverter<System.ComponentModel.TypeConverter> * System.Xaml.Schema.AllowedMemberLocations -> System.Xaml.XamlDirective
Public Sub New (xamlNamespaces As IEnumerable(Of String), name As String, xamlType As XamlType, typeConverter As XamlValueConverter(Of TypeConverter), allowedLocation As AllowedMemberLocations)

パラメーター

xamlNamespaces
IEnumerable<String>

この XamlDirective が存在できる XAML 名前空間のセット。識別子文字列の列挙可能なセットとして渡されます。

name
String

XamlDirective の識別名。

xamlType
XamlType

XamlDirective をサポートする XAML 型。

typeConverter
XamlValueConverter<TypeConverter>

この XamlDirective がテキスト構文の変換に使用する型コンバーター。

allowedLocation
AllowedMemberLocations

AllowedMemberLocations 列挙体の値。

例外

xamlType パラメーターが null です。

注釈

次のようにtrue報告IsUnknownしないコンストラクターを生成するには、このコンストラクターをXamlDirective使用する必要があります。

適用対象