Share via


ImportAttribute コンストラクター

定義

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

オーバーロード

ImportAttribute()

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

ImportAttribute(String)

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

ImportAttribute(Type)

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

ImportAttribute(String, Type)

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

ImportAttribute()

ソース:
ImportAttribute.cs
ソース:
ImportAttribute.cs
ソース:
ImportAttribute.cs

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

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

注釈

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

コントラクト名を比較するには、 プロパティを Ordinal 使用して、大文字と小文字を区別する非言語的比較を実行します。

適用対象

ImportAttribute(String)

ソース:
ImportAttribute.cs
ソース:
ImportAttribute.cs
ソース:
ImportAttribute.cs

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

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

パラメーター

contractName
String

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

注釈

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

コントラクト名を比較するには、 プロパティを Ordinal 使用して、大文字と小文字を区別する非言語的比較を実行します。

適用対象

ImportAttribute(Type)

ソース:
ImportAttribute.cs
ソース:
ImportAttribute.cs
ソース:
ImportAttribute.cs

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

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

パラメーター

contractType
Type

エクスポートのコントラクト名の派生元の型。null を指定すると、既定のコントラクト名が使用されます。

注釈

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

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

コントラクト名を比較するには、 プロパティを Ordinal 使用して、大文字と小文字を区別する非言語的比較を実行します。

適用対象

ImportAttribute(String, Type)

ソース:
ImportAttribute.cs
ソース:
ImportAttribute.cs
ソース:
ImportAttribute.cs

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

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

パラメーター

contractName
String

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

contractType
Type

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

適用対象