ModelingWindowPane.GetSelectedObjects Method
Gets the elements that are selected in the window pane.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'宣告
Protected Overridable Sub GetSelectedObjects ( _
count As UInteger, _
objects As Object() _
)
protected virtual void GetSelectedObjects(
uint count,
Object[] objects
)
protected:
virtual void GetSelectedObjects(
unsigned int count,
array<Object^>^ objects
)
abstract GetSelectedObjects :
count:uint32 *
objects:Object[] -> unit
override GetSelectedObjects :
count:uint32 *
objects:Object[] -> unit
protected function GetSelectedObjects(
count : uint,
objects : Object[]
)
Parameters
- count
Type: System.UInt32
The number of objects to be returned.
- objects
Type: array<System.Object[]
The selected elements.
Remarks
By default this method returns the elements in the SelectedElements collection if count is less than or equal to the count of that collection.
.NET Framework Security
- 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.