Partager via


PexCreatableAsSingletonAttribute.TryInstantiate Method

Definition

Tries to instantiate this definition with the specified arguments.

public:
 override bool TryInstantiate(Microsoft::Pex::Engine::ComponentModel::IPexExplorationComponent ^ host, cli::array <Microsoft::ExtendedReflection::Metadata::TypeEx ^> ^ genericTypeArguments, [Runtime::InteropServices::Out] Microsoft::Pex::Engine::Creatable::IPexCreatable ^ % creatable);
public override bool TryInstantiate (Microsoft.Pex.Engine.ComponentModel.IPexExplorationComponent host, Microsoft.ExtendedReflection.Metadata.TypeEx[] genericTypeArguments, out Microsoft.Pex.Engine.Creatable.IPexCreatable creatable);
override this.TryInstantiate : Microsoft.Pex.Engine.ComponentModel.IPexExplorationComponent * Microsoft.ExtendedReflection.Metadata.TypeEx[] * IPexCreatable -> bool
Public Overrides Function TryInstantiate (host As IPexExplorationComponent, genericTypeArguments As TypeEx(), ByRef creatable As IPexCreatable) As Boolean

Parameters

host
Microsoft.Pex.Engine.ComponentModel.IPexExplorationComponent

The host.

genericTypeArguments
Microsoft.ExtendedReflection.Metadata.TypeEx[]

The type arguments.

creatable
Microsoft.Pex.Engine.Creatable.IPexCreatable

The creatable.

Returns

Applies to