ReflectionModelServices.TryMakeGenericPartDefinition Methode

Definitie

Geeft aan of een algemene onderdeeldefinitie kan worden gespecialiseerd met de opgegeven parameters.

public:
 static bool TryMakeGenericPartDefinition(System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ partDefinition, System::Collections::Generic::IEnumerable<Type ^> ^ genericParameters, [Runtime::InteropServices::Out] System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ % specialization);
public static bool TryMakeGenericPartDefinition(System.ComponentModel.Composition.Primitives.ComposablePartDefinition partDefinition, System.Collections.Generic.IEnumerable<Type> genericParameters, out System.ComponentModel.Composition.Primitives.ComposablePartDefinition? specialization);
public static bool TryMakeGenericPartDefinition(System.ComponentModel.Composition.Primitives.ComposablePartDefinition partDefinition, System.Collections.Generic.IEnumerable<Type> genericParameters, out System.ComponentModel.Composition.Primitives.ComposablePartDefinition specialization);
static member TryMakeGenericPartDefinition : System.ComponentModel.Composition.Primitives.ComposablePartDefinition * seq<Type> * ComposablePartDefinition -> bool
Public Shared Function TryMakeGenericPartDefinition (partDefinition As ComposablePartDefinition, genericParameters As IEnumerable(Of Type), ByRef specialization As ComposablePartDefinition) As Boolean

Parameters

partDefinition
ComposablePartDefinition

De onderdeeldefinitie.

genericParameters
IEnumerable<Type>

Een verzameling typen om de algemene parameters op te geven.

specialization
ComposablePartDefinition

Wanneer deze methode wordt geretourneerd, bevat deze de gespecialiseerde onderdeeldefinitie. Deze parameter wordt behandeld als niet-geïnitialiseerd.

Retouren

true indien de specialisatie slaagt; anders, false.

Van toepassing op