ExportConventionBuilder.AsContractName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
Returns
An export builder containing the contract name that allows for further configuration.
Applies to
AsContractName(String)
- Source:
- ExportConventionBuilder.cs
- 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.