次の方法で共有


ExportConventionBuilder.AsContractName メソッド

定義

オーバーロード

AsContractName(Func<Type,String>)

エクスポート型での指定の関数の結果に基づいてエクスポートのコントラクト名を指定します。

AsContractName(String)

エクスポートに対応するコントラクト名を指定します。

AsContractName(Func<Type,String>)

ソース:
ExportConventionBuilder.cs
ソース:
ExportConventionBuilder.cs
ソース:
ExportConventionBuilder.cs

エクスポート型での指定の関数の結果に基づいてエクスポートのコントラクト名を指定します。

public:
 System::Composition::Convention::ExportConventionBuilder ^ AsContractName(Func<Type ^, System::String ^> ^ getContractNameFromPartType);
public System.Composition.Convention.ExportConventionBuilder AsContractName (Func<Type,string> getContractNameFromPartType);
member this.AsContractName : Func<Type, string> -> System.Composition.Convention.ExportConventionBuilder
Public Function AsContractName (getContractNameFromPartType As Func(Of Type, String)) As ExportConventionBuilder

パラメーター

getContractNameFromPartType
Func<Type,String>

コントラクト名を提供する関数。

戻り値

詳細な構成を可能にするコントラクト名を含むエクスポート ビルダー。

適用対象

AsContractName(String)

ソース:
ExportConventionBuilder.cs
ソース:
ExportConventionBuilder.cs
ソース:
ExportConventionBuilder.cs

エクスポートに対応するコントラクト名を指定します。

public:
 System::Composition::Convention::ExportConventionBuilder ^ AsContractName(System::String ^ contractName);
public System.Composition.Convention.ExportConventionBuilder AsContractName (string contractName);
member this.AsContractName : string -> System.Composition.Convention.ExportConventionBuilder
Public Function AsContractName (contractName As String) As ExportConventionBuilder

パラメーター

contractName
String

コントラクト名。

戻り値

詳細な構成を可能にするコントラクト名を含むエクスポート ビルダー。

適用対象