Compartir a través de


IVsHierarchy.SetGuidProperty(UInt32, Int32, Guid) Method

Definition

Sets properties whose values are GUIDs.

public:
 int SetGuidProperty(System::UInt32 itemid, int propid, Guid % rguid);
public int SetGuidProperty (uint itemid, int propid, ref Guid rguid);
abstract member SetGuidProperty : uint32 * int * Guid -> int
Public Function SetGuidProperty (itemid As UInteger, propid As Integer, ByRef rguid As Guid) As Integer

Parameters

itemid
UInt32

[in] Identifier of the hierarchy item that is to be set. For a list of itemid values, see VSITEMID.

propid
Int32

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

rguid
Guid

[in] GUID value of the property specified in propid that is returned by GetGuidProperty(UInt32, Int32, Guid).

Returns

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

Remarks

This method is called by the environment to set a specific property on the hierarchy.

COM Signature

From vsshell.idl:

HRESULT IVsHierarchy::SetGuidProperty(  
   [in] VSITEMID itemid,  
   [in] VSHPROPID propid,  
   [in] REFGUID rguid  
);  

Applies to