ImportConventionBuilder.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>) |
Sets the contract name of the import to the value provided by the specified function on the part type. |
AsContractName(String) |
Sets the contract name of the import to the specified string. |
AsContractName(Func<Type,String>)
- Source:
- ImportConventionBuilder.cs
- Source:
- ImportConventionBuilder.cs
Sets the contract name of the import to the value provided by the specified function on the part type.
public:
System::Composition::Convention::ImportConventionBuilder ^ AsContractName(Func<Type ^, System::String ^> ^ getContractNameFromPartType);
public System.Composition.Convention.ImportConventionBuilder AsContractName (Func<Type,string> getContractNameFromPartType);
member this.AsContractName : Func<Type, string> -> System.Composition.Convention.ImportConventionBuilder
Public Function AsContractName (getContractNameFromPartType As Func(Of Type, String)) As ImportConventionBuilder
Parameters
A function that provides the contract name of the import.
Returns
An import builder containing the contract name that allows for further configuration.
Applies to
AsContractName(String)
- Source:
- ImportConventionBuilder.cs
- Source:
- ImportConventionBuilder.cs
Sets the contract name of the import to the specified string.
public:
System::Composition::Convention::ImportConventionBuilder ^ AsContractName(System::String ^ contractName);
public System.Composition.Convention.ImportConventionBuilder AsContractName (string contractName);
member this.AsContractName : string -> System.Composition.Convention.ImportConventionBuilder
Public Function AsContractName (contractName As String) As ImportConventionBuilder
Parameters
- contractName
- String
The contract name of the import.
Returns
An import builder containing the contract name that allows for further configuration.