Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft