Returns the elements that are selected in the modeling window.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)
Syntax
'宣言
Protected Overridable Sub GetSelectedObjects ( _
count As UInteger, _
objects As Object() _
)
'使用
Dim count As UInteger
Dim objects As Object()
Me.GetSelectedObjects(count, objects)
protected virtual void GetSelectedObjects(
uint count,
Object[] objects
)
protected:
virtual void GetSelectedObjects(
unsigned int count,
array<Object^>^ objects
)
protected function GetSelectedObjects(
count : uint,
objects : Object[]
)
Parameters
count
Type: System.UInt32The requested number of objects to be returned.
objects
Type: []The selected elements.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.