Compartilhar via


ImportMetadataViewConstraint.GetConstraint(TypeRef, Resolver) Método

Definição

Cria uma restrição para o tipo de metadados especificado.

public static Microsoft.VisualStudio.Composition.ImportMetadataViewConstraint GetConstraint (Microsoft.VisualStudio.Composition.Reflection.TypeRef metadataTypeRef, Microsoft.VisualStudio.Composition.Resolver resolver);
static member GetConstraint : Microsoft.VisualStudio.Composition.Reflection.TypeRef * Microsoft.VisualStudio.Composition.Resolver -> Microsoft.VisualStudio.Composition.ImportMetadataViewConstraint
Public Shared Function GetConstraint (metadataTypeRef As TypeRef, resolver As Resolver) As ImportMetadataViewConstraint

Parâmetros

metadataTypeRef
TypeRef

O tipo de metadados.

resolver
Resolver

O carregador de assembly.

Retornos

Uma restrição para corresponder ao tipo de metadados.

Aplica-se a