次の方法で共有


ImportAttribute コンストラクター

定義

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

オーバーロード

名前 説明
ImportAttribute()

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

ImportAttribute(String)

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

ImportAttribute(Type)

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

ImportAttribute(String, Type)

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

ImportAttribute()

ソース:
ImportAttribute.cs
ソース:
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.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.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

注釈

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

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

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

適用対象

ImportAttribute(String, Type)

ソース:
ImportAttribute.cs
ソース:
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

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

適用対象