Share via


XamlType コンストラクター

定義

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

オーバーロード

XamlType(Type, XamlSchemaContext)

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

XamlType(String, IList<XamlType>, XamlSchemaContext)

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

XamlType(Type, XamlSchemaContext, XamlTypeInvoker)

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

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)

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

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

XamlTypeInvoker に対してランタイムのリフレクション呼び出しを処理する XamlType 実装。

例外

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

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

typeArguments
IList<XamlType>

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

schemaContext
XamlSchemaContext

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

例外

1 つ以上の unknownTypeNamespaceunknownTypeName、または schemaContextnull です。

注釈

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

適用対象