Freigeben über


ModelingWindowPane.GetObjects Method

Gets either the elements that are currently selected or the elements that can be 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

'Declaration
Public Function GetObjects ( _
    flags As UInteger, _
    count As UInteger, _
    objects As Object() _
) As Integer
public int GetObjects(
    uint flags,
    uint count,
    Object[] objects
)
public:
virtual int GetObjects(
    unsigned int flags, 
    unsigned int count, 
    array<Object^>^ objects
) sealed
abstract GetObjects : 
        flags:uint32 * 
        count:uint32 * 
        objects:Object[] -> int 
override GetObjects : 
        flags:uint32 * 
        count:uint32 * 
        objects:Object[] -> int 
public final function GetObjects(
    flags : uint, 
    count : uint, 
    objects : Object[]
) : int

Parameters

  • flags
    Type: System.UInt32
    The type of objects to return. If set to 1, this method returns all objects that can be selected. If set to 2, the method returns only the objects that are selected.
  • count
    Type: System.UInt32
    The requested number of objects to return.
  • objects
    Type: array<System.Object[]
    The set of objects to be returned.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

ISelectionContainer.GetObjects(UInt32, UInt32, array<Object[])

Remarks

This method implements the GetObjects method.

.NET Framework Security

See Also

Reference

ModelingWindowPane Class

Microsoft.VisualStudio.Modeling.Shell Namespace