Edit

Share via


ImportBuilder.AsContractName(String) Method

Definition

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

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

Parameters

contractName
String

The contract name.

Returns

The current object, to allow chaining.

Exceptions

contractName is null.

contractName is an empty string.

Applies to