次の方法で共有


ImportManyAttribute コンストラクター

定義

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

オーバーロード

名前 説明
ImportManyAttribute()

既定のコントラクト名を使用してエクスポートのセットをインポートして、 ImportManyAttribute クラスの新しいインスタンスを初期化します。

ImportManyAttribute(String)

ImportManyAttribute クラスの新しいインスタンスを初期化し、指定したコントラクト名でエクスポートのセットをインポートします。

ImportManyAttribute(Type)

ImportManyAttribute クラスの新しいインスタンスを初期化し、指定した型から派生したコントラクト名を使用してエクスポートのセットをインポートします。

ImportManyAttribute(String, Type)

指定したコントラクト名とコントラクト型を使用してエクスポートのセットをインポートして、 ImportManyAttribute クラスの新しいインスタンスを初期化します。

ImportManyAttribute()

ソース:
ImportManyAttribute.cs
ソース:
ImportManyAttribute.cs
ソース:
ImportManyAttribute.cs
ソース:
ImportManyAttribute.cs

既定のコントラクト名を使用してエクスポートのセットをインポートして、 ImportManyAttribute クラスの新しいインスタンスを初期化します。

public:
 ImportManyAttribute();
public ImportManyAttribute();
Public Sub New ()

注釈

既定のコントラクト名は、この属性でマークされているプロパティ、フィールド、またはパラメーターの型に対して GetContractName メソッドを呼び出した結果です。

コントラクト名は、 Ordinal プロパティを使用して比較され、大文字と小文字が区別され、言語以外の比較が実行されます。

適用対象

ImportManyAttribute(String)

ソース:
ImportManyAttribute.cs
ソース:
ImportManyAttribute.cs
ソース:
ImportManyAttribute.cs
ソース:
ImportManyAttribute.cs

ImportManyAttribute クラスの新しいインスタンスを初期化し、指定したコントラクト名でエクスポートのセットをインポートします。

public:
 ImportManyAttribute(System::String ^ contractName);
public ImportManyAttribute(string? contractName);
public ImportManyAttribute(string contractName);
new System.ComponentModel.Composition.ImportManyAttribute : string -> System.ComponentModel.Composition.ImportManyAttribute
Public Sub New (contractName As String)

パラメーター

contractName
String

インポートするエクスポートのコントラクト名。既定のコントラクト名を使用する null または空の文字列 ("") です。

注釈

既定のコントラクト名は、この属性でマークされているプロパティ、フィールド、またはパラメーター型に対して GetContractName メソッドを呼び出した結果です。

コントラクト名は、 Ordinal プロパティを使用して比較され、大文字と小文字が区別され、言語以外の比較が実行されます。

適用対象

ImportManyAttribute(Type)

ソース:
ImportManyAttribute.cs
ソース:
ImportManyAttribute.cs
ソース:
ImportManyAttribute.cs
ソース:
ImportManyAttribute.cs

ImportManyAttribute クラスの新しいインスタンスを初期化し、指定した型から派生したコントラクト名を使用してエクスポートのセットをインポートします。

public:
 ImportManyAttribute(Type ^ contractType);
public ImportManyAttribute(Type? contractType);
public ImportManyAttribute(Type contractType);
new System.ComponentModel.Composition.ImportManyAttribute : Type -> System.ComponentModel.Composition.ImportManyAttribute
Public Sub New (contractType As Type)

パラメーター

contractType
Type

インポートするエクスポートのコントラクト名を派生させる型。既定のコントラクト名を使用する null

注釈

コントラクト名は、contractTypeGetContractName メソッドを呼び出した結果です。

既定のコントラクト名は、この属性でマークされているプロパティ、フィールド、またはパラメーター型に対して GetContractName メソッドを呼び出した結果です。

コントラクト名は、 Ordinal プロパティを使用して比較され、大文字と小文字が区別され、言語以外の比較が実行されます。

適用対象

ImportManyAttribute(String, Type)

ソース:
ImportManyAttribute.cs
ソース:
ImportManyAttribute.cs
ソース:
ImportManyAttribute.cs
ソース:
ImportManyAttribute.cs

指定したコントラクト名とコントラクト型を使用してエクスポートのセットをインポートして、 ImportManyAttribute クラスの新しいインスタンスを初期化します。

public:
 ImportManyAttribute(System::String ^ contractName, Type ^ contractType);
public ImportManyAttribute(string? contractName, Type? contractType);
public ImportManyAttribute(string contractName, Type contractType);
new System.ComponentModel.Composition.ImportManyAttribute : string * Type -> System.ComponentModel.Composition.ImportManyAttribute
Public Sub New (contractName As String, contractType As Type)

パラメーター

contractName
String

インポートするエクスポートのコントラクト名。既定のコントラクト名を使用する null または空の文字列 ("") です。

contractType
Type

インポートするエクスポートの種類。

適用対象