The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IVsHierarchy.SetProperty Method

Sets properties of a specific node or of the hierarchy.

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

int SetProperty (
	[InAttribute] uint itemid,
	[InAttribute] int propid,
	[InAttribute] Object var
int SetProperty (
	/** @attribute InAttribute() */ UInt32 itemid, 
	/** @attribute InAttribute() */ int propid, 
	/** @attribute InAttribute() */ Object var
function SetProperty (
	itemid : uint, 
	propid : int, 
	var : Object
) : int



[in] Item identifier of the hierarchy item whose properties are to be set. For a list of itemid values, see VSITEMID.


[in] Identifier of the hierarchy property. For a list of propid values, see __VSHPROPID.


[in] Variant that contains property information.

Return Value

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

COM Signature

From vsshell.idl:

HRESULT IVsHierarchy::SetProperty(
   [in] VSITEMID itemid,
   [in] VSHPROPID propid,
   [in] VARIANT var
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft