Share via


ImportMetadataViewConstraint.GetConstraint(TypeRef, Resolver) Method

Definition

Creates a constraint for the specified metadata type.

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

Parameters

metadataTypeRef
TypeRef

The metadata type.

resolver
Resolver

The assembly loader.

Returns

A constraint to match the metadata type.

Applies to