Gets a read-only collection of 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
'宣言
Public Overridable Function GetSelectedComponents As ICollection
'使用
Dim instance As ModelingWindowPane
Dim returnValue As ICollection
returnValue = instance.GetSelectedComponents()
public virtual ICollection GetSelectedComponents()
public:
virtual ICollection^ GetSelectedComponents()
public function GetSelectedComponents() : ICollection
Return Value
Type: System.Collections.ICollection
A read-only collection of elements that are selected.
Implements
ISelectionService.GetSelectedComponents()
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.