Compartir a través de


IVsObjectList2.GetFlags Method

Returns the attributes of the current tree list.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function GetFlags ( _
    <OutAttribute> ByRef pFlags As UInteger _
) As Integer
int GetFlags(
    out uint pFlags
)
int GetFlags(
    [OutAttribute] unsigned int% pFlags
)
abstract GetFlags : 
        pFlags:uint32 byref -> int
function GetFlags(
    pFlags : uint
) : int

Parameters

  • pFlags
    Type: UInt32%

    [out] Pointer to a variable indicating attributes of the current tree list. Values are taken from the _VSTREEFLAGS enumeration.

Return Value

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

Remarks

COM Signature

From vsshell80.idl:

[C++]

HRESULT IVsObjectList2::GetFlags(
   [out] VSTREEFLAGS *pFlags
);

This method returns attributes of the current tree list node. Set these attributes to a combination of the enumerators of _VSTREEFLAGS.

.NET Framework Security

See Also

Reference

IVsObjectList2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace