ExtensionContextExtensions.AtLeastOneSelected<T1, T2> Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Namespace:  Microsoft.VisualStudio.Modeling.ExtensionEnablement
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function AtLeastOneSelected(Of T1 As Class, T2 As Class) ( _
    context As VsSelectionContext _
) As Boolean
'Usage
Dim context As VsSelectionContext
Dim returnValue As Boolean

returnValue = context.AtLeastOneSelected()
public static bool AtLeastOneSelected<T1, T2>(
    this VsSelectionContext context
)
where T1 : class
where T2 : class
[ExtensionAttribute]
public:
generic<typename T1, typename T2>
where T1 : ref class
where T2 : ref class
static bool AtLeastOneSelected(
    VsSelectionContext^ context
)
JScript does not support generic types or methods.
static member AtLeastOneSelected : 
        context:VsSelectionContext -> bool  when 'T1 : not struct when 'T2 : not struct

Type Parameters

  • T1
  • T2

Parameters

Return Value

Type: System.Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type VsSelectionContext. 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).

.NET Framework Security

See Also

Reference

ExtensionContextExtensions Class

ExtensionContextExtensions Members

Microsoft.VisualStudio.Modeling.ExtensionEnablement Namespace