共用方式為


IVsLiteTreeList.GetFlags Method

Returns the attributes of the current tree list.

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

Syntax

'宣告
Function GetFlags ( _
    <OutAttribute> ByRef pFlags As UInteger _
) As Integer
'用途
Dim instance As IVsLiteTreeList
Dim pFlags As UInteger
Dim returnValue As Integer

returnValue = instance.GetFlags(pFlags)
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: System.UInt32%
    [out] Pointer to a variable indicating attributes of the current tree list. Values are taken from the _VSTREEFLAGS enumeration.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsLiteTreeList::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

IVsLiteTreeList Interface

IVsLiteTreeList Members

Microsoft.VisualStudio.Shell.Interop Namespace