Share via


ExportConventionBuilder.AsContractName Method

Definition

Overloads

AsContractName(Func<Type,String>)

Specifies the contract name for the export based on the result of the specified function on the export type.

AsContractName(String)

Specifies the contract name for the export.

AsContractName(Func<Type,String>)

Source:
ExportConventionBuilder.cs
Source:
ExportConventionBuilder.cs

Specifies the contract name for the export based on the result of the specified function on the export type.

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

Parameters

getContractNameFromPartType
Func<Type,String>

The function that provides the contract name.

Returns

An export builder containing the contract name that allows for further configuration.

Applies to

AsContractName(String)

Source:
ExportConventionBuilder.cs
Source:
ExportConventionBuilder.cs

Specifies the contract name for the export.

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

Parameters

contractName
String

The contract name.

Returns

An export builder containing the contract name that allows for further configuration.

Applies to