ModelingWindowPane.GetObjects Method

Returns either the elements that are selected or the elements that can be 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 Function GetObjects ( _
    flags As UInteger, _
    count As UInteger, _
    objects As Object() _
) As Integer
'使用
Dim instance As ModelingWindowPane
Dim flags As UInteger
Dim count As UInteger
Dim objects As Object()
Dim returnValue As Integer

returnValue = instance.GetObjects(flags, _
    count, objects)
public int GetObjects(
    uint flags,
    uint count,
    Object[] objects
)
public:
virtual int GetObjects(
    unsigned int flags, 
    unsigned int count, 
    array<Object^>^ objects
) sealed
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 GETOBJS_ALL, this method returns all objects that can be selected. If set to GETOBJS_SELECTED, the method returns only the objects that are selected.

  • count
    Type: System.UInt32

    The requested number of objects to return.

  • objects
    Type: []

    The selected elements or the elements that are selected and that support the IDispatch interface.

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, [])

Remarks

This method implements the GetObjects interface.

Permissions

See Also

Reference

ModelingWindowPane Class

ModelingWindowPane Members

Microsoft.VisualStudio.Modeling.Shell Namespace