次の方法で共有


XamlType コンストラクター

定義

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

オーバーロード

名前 説明
XamlType(Type, XamlSchemaContext)

基になる CLR 型情報に基づいて、 XamlType クラスの新しいインスタンスを初期化します。

XamlType(String, IList<XamlType>, XamlSchemaContext)

型の文字列名に基づいて、 XamlType クラスの新しいインスタンスを初期化します。

XamlType(Type, XamlSchemaContext, XamlTypeInvoker)

基になる型情報とXamlTypeInvoker実装に基づいて、XamlType クラスの新しいインスタンスを初期化します。

XamlType(String, String, IList<XamlType>, XamlSchemaContext)

XAML 名前空間と型の文字列名に基づいて、 XamlType クラスの新しいインスタンスを初期化します。 このコンストラクターは、サポートする型システムおよび XAML スキーマ コンテキストでバッキングを持たないことがわかっている型使用法の分析と XAML ノードの記録専用です。

XamlType(Type, XamlSchemaContext)

基になる CLR 型情報に基づいて、 XamlType クラスの新しいインスタンスを初期化します。

public:
 XamlType(Type ^ underlyingType, System::Xaml::XamlSchemaContext ^ schemaContext);
public XamlType(Type underlyingType, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlType : Type * System.Xaml.XamlSchemaContext -> System.Xaml.XamlType
Public Sub New (underlyingType As Type, schemaContext As XamlSchemaContext)

パラメーター

underlyingType
Type

構築する XAML 型の基になる CLR Type

schemaContext
XamlSchemaContext

XAML リーダーまたは XAML ライターの XAML スキーマ コンテキスト。

例外

1 つ以上の underlyingType または schemaContextnull

適用対象

XamlType(String, IList<XamlType>, XamlSchemaContext)

型の文字列名に基づいて、 XamlType クラスの新しいインスタンスを初期化します。

protected:
 XamlType(System::String ^ typeName, System::Collections::Generic::IList<System::Xaml::XamlType ^> ^ typeArguments, System::Xaml::XamlSchemaContext ^ schemaContext);
protected XamlType(string typeName, System.Collections.Generic.IList<System.Xaml.XamlType> typeArguments, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlType : string * System.Collections.Generic.IList<System.Xaml.XamlType> * System.Xaml.XamlSchemaContext -> System.Xaml.XamlType
Protected Sub New (typeName As String, typeArguments As IList(Of XamlType), schemaContext As XamlSchemaContext)

パラメーター

typeName
String

作成する型の名前。

typeArguments
IList<XamlType>

ジェネリック型を表す XamlType の型引数。 (多くの場合) nullできます。これは、表される型がジェネリック型ではないことを示します。

schemaContext
XamlSchemaContext

XAML リーダーと XAML ライターの XAML スキーマ コンテキスト。

例外

1 つ以上の typeName または schemaContextnull

注釈

これは保護されたコンストラクターです。 この特定のパスを構築に使用する現在のパブリック派生クラスは存在しません。 既存の XamlTypeのコンシューマーとして、他のコンストラクターシグネチャ (XamlType(Type, XamlSchemaContext, XamlTypeInvoker)XamlType(Type, XamlSchemaContext)、または XamlType(String, String, IList<XamlType>, XamlSchemaContext)) を使用して、 XamlType オブジェクトを初期化する必要があります。

適用対象

XamlType(Type, XamlSchemaContext, XamlTypeInvoker)

基になる型情報とXamlTypeInvoker実装に基づいて、XamlType クラスの新しいインスタンスを初期化します。

public:
 XamlType(Type ^ underlyingType, System::Xaml::XamlSchemaContext ^ schemaContext, System::Xaml::Schema::XamlTypeInvoker ^ invoker);
public XamlType(Type underlyingType, System.Xaml.XamlSchemaContext schemaContext, System.Xaml.Schema.XamlTypeInvoker invoker);
new System.Xaml.XamlType : Type * System.Xaml.XamlSchemaContext * System.Xaml.Schema.XamlTypeInvoker -> System.Xaml.XamlType
Public Sub New (underlyingType As Type, schemaContext As XamlSchemaContext, invoker As XamlTypeInvoker)

パラメーター

underlyingType
Type

構築する XAML 型の基になる型。

schemaContext
XamlSchemaContext

XAML リーダーの XAML スキーマ コンテキスト。

invoker
XamlTypeInvoker

XamlTypeに対する実行時リフレクション呼び出しを処理するXamlTypeInvoker実装。

例外

1 つ以上の underlyingType または schemaContextnull

適用対象

XamlType(String, String, IList<XamlType>, XamlSchemaContext)

XAML 名前空間と型の文字列名に基づいて、 XamlType クラスの新しいインスタンスを初期化します。 このコンストラクターは、サポートする型システムおよび XAML スキーマ コンテキストでバッキングを持たないことがわかっている型使用法の分析と XAML ノードの記録専用です。

public:
 XamlType(System::String ^ unknownTypeNamespace, System::String ^ unknownTypeName, System::Collections::Generic::IList<System::Xaml::XamlType ^> ^ typeArguments, System::Xaml::XamlSchemaContext ^ schemaContext);
public XamlType(string unknownTypeNamespace, string unknownTypeName, System.Collections.Generic.IList<System.Xaml.XamlType> typeArguments, System.Xaml.XamlSchemaContext schemaContext);
new System.Xaml.XamlType : string * string * System.Collections.Generic.IList<System.Xaml.XamlType> * System.Xaml.XamlSchemaContext -> System.Xaml.XamlType
Public Sub New (unknownTypeNamespace As String, unknownTypeName As String, typeArguments As IList(Of XamlType), schemaContext As XamlSchemaContext)

パラメーター

unknownTypeNamespace
String

文字列としての型の XAML 名前空間。

unknownTypeName
String

指定された XAML 名前空間内の型の名前 unknownTypeNamespace

typeArguments
IList<XamlType>

ジェネリック型を表す XamlType の型引数。 (多くの場合) nullできます。これは、表される型がジェネリック型ではないことを示します。

schemaContext
XamlSchemaContext

XAML リーダーまたは XAML ライターの XAML スキーマ コンテキスト。

例外

1 つ以上の unknownTypeNamespaceunknownTypeName、または schemaContextnull

注釈

このコンストラクターは、基になる型システムにマップされる XAML 型が使用できない "不明な" 型にのみ使用します。 このコンストラクターは、 XamlType.IsUnknowntrueされた結果を生成しない可能性があります。 代わりに、既定のリフレクター ロジックは、基になる型を XamlLanguage.Objectとして報告します。 ただし、この動作は、 LookupIsUnknown オーバーライドのために変更される可能性があります。

適用対象