IVsHierarchy.GetProperty(UInt32, Int32, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets properties of a given node or of the hierarchy.
public:
int GetProperty(System::UInt32 itemid, int propid, [Runtime::InteropServices::Out] System::Object ^ % pvar);
int GetProperty(unsigned int itemid, int propid, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & pvar);
public int GetProperty (uint itemid, int propid, out object pvar);
abstract member GetProperty : uint32 * int * obj -> int
Public Function GetProperty (itemid As UInteger, propid As Integer, ByRef pvar As Object) As Integer
Parameters
- itemid
- UInt32
[in] Item identifier of an item in the hierarchy. For a list of itemid
values, see VSConstants.VSITEMID.
- propid
- Int32
[in] Identifier of the hierarchy property. For a list of propid
values, see __VSHPROPID.
- pvar
- Object
[out] Pointer to a VARIANT containing the property value.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
To get properties of the project (hierarchy), specify an itemid
value of VSITEMID_ROOT.
COM Signature
From vsshell.idl:
HRESULT IVsHierarchy::GetProperty(
[in] VSITEMID itemid,
[in] VSHPROPID propid,
[out] VARIANT *pvar
);