Edit

Share via


ExportBuilder.AsContractName(String) Method

Definition

Specifies that the export should be under the given contract name.

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

Parameters

contractName
String

The contract name.

Returns

The current object, to allow chaining.

Exceptions

contractName is null.

contractName is an empty string.

Applies to