Partager via


ModelBusReferenceExtensionMethods.ApplyElementTypeLimitations Method

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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.10.0.dll)

Syntax

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

Parameters

Return Value

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

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<SupportedType>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

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

.NET Framework Security

See Also

Reference

ModelBusReferenceExtensionMethods Class

Microsoft.VisualStudio.Modeling.Integration.Picker Namespace