共用方式為


IVsHierarchyEvents.OnPropertyChanged(UInt32, Int32, UInt32) Method

Definition

Notifies clients when one or more properties of an item have changed.

public:
 int OnPropertyChanged(System::UInt32 itemid, int propid, System::UInt32 flags);
public:
 int OnPropertyChanged(unsigned int itemid, int propid, unsigned int flags);
int OnPropertyChanged(unsigned int itemid, int propid, unsigned int flags);
public int OnPropertyChanged (uint itemid, int propid, uint flags);
abstract member OnPropertyChanged : uint32 * int * uint32 -> int
Public Function OnPropertyChanged (itemid As UInteger, propid As Integer, flags As UInteger) As Integer

Parameters

itemid
UInt32

[in] Identifier of the item whose property has changed. For a list of itemid values, see VSITEMID.

propid
Int32

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

flags
UInt32

[in] Not implemented.

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsHierarchyEvents::OnPropertyChanged(  
   [in] VSITEMID itemid,  
   [in] VSHPROPID propid,  
   [in] DWORD flags);  

Use this notification to update the internal state of the hierarchy when one or more properties have changed.

Applies to