Partager via


ModelBusReferenceExtensionMethods.ApplyElementTypeLimitations Method (IEnumerable<SupportedType>, IModelBrowserHost)

 

Applies filtering based on the host's metadata, by using the first found ApplyElementTypeLimitationsAttribute.

Namespace:   Microsoft.VisualStudio.Modeling.Integration.Picker
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll)

Syntax

public static IEnumerable<SupportedType> ApplyElementTypeLimitations(
    this IEnumerable<SupportedType> enumeration,
    IModelBrowserHost host
)
public:
[ExtensionAttribute]
static IEnumerable<SupportedType^>^ ApplyElementTypeLimitations(
    IEnumerable<SupportedType^>^ enumeration,
    IModelBrowserHost^ host
)
static member ApplyElementTypeLimitations : 
        enumeration:IEnumerable<SupportedType> *
        host:IModelBrowserHost -> IEnumerable<SupportedType>
<ExtensionAttribute>
Public Shared Function ApplyElementTypeLimitations (
    enumeration As IEnumerable(Of SupportedType),
    host As IModelBrowserHost
) As IEnumerable(Of SupportedType)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<SupportedType>

Remarks

Used by the Picker to filter out non-configured element types.

See Also

ModelBusReferenceExtensionMethods Class
Microsoft.VisualStudio.Modeling.Integration.Picker Namespace

Return to top