HierarchyUtilities.TryGetHierarchyProperty<T> Method (IVsHierarchy, UInt32, Int32, Func<Object, T>, T%)

Namespace:  Microsoft.Internal.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaration
Public Shared Function TryGetHierarchyProperty(Of T) ( _
    hierarchy As IVsHierarchy, _
    itemid As UInteger, _
    propid As Integer, _
    converter As Func(Of Object, T), _
    <OutAttribute> ByRef value As T _
) As Boolean
public static bool TryGetHierarchyProperty<T>(
    IVsHierarchy hierarchy,
    uint itemid,
    int propid,
    Func<Object, T> converter,
    out T value
)
public:
generic<typename T>
static bool TryGetHierarchyProperty(
    IVsHierarchy^ hierarchy, 
    unsigned int itemid, 
    int propid, 
    Func<Object^, T>^ converter, 
    [OutAttribute] T% value
)
static member TryGetHierarchyProperty : 
        hierarchy:IVsHierarchy * 
        itemid:uint32 * 
        propid:int * 
        converter:Func<Object, 'T> * 
        value:'T byref -> bool
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

  • value
    Type: T%

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

HierarchyUtilities Class

TryGetHierarchyProperty Overload

Microsoft.Internal.VisualStudio.PlatformUI Namespace