CompositionContract::ChangeType Method (Type^)

.NET Framework (current version)
 

Creates a new contract that has the specified type but the same name and constraints as this object.

Namespace:   System.Composition.Hosting.Core
Assembly:  System.Composition.Runtime (in System.Composition.Runtime.dll)

public:
CompositionContract^ ChangeType(
	Type^ newContractType
)

Parameters

newContractType
Type: System::Type^

The new contract type.

Return Value

Type: System.Composition.Hosting.Core::CompositionContract^

The created contract.

Return to top
Show: