ImportMetadataViewConstraint.GetConstraint(TypeRef, Resolver) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.