Compartir a través de


IVsUIShell.RefreshPropertyBrowser Method

Makes it possible for a project (or any other selected object being browsed by the Properties window) to keep the Properties window in sync with property changes without implementing IConnectionPointContainer and firing OnChanged events.

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

Syntax

'Declaration
Function RefreshPropertyBrowser ( _
    dispid As Integer _
) As Integer
int RefreshPropertyBrowser(
    int dispid
)
int RefreshPropertyBrowser(
    [InAttribute] int dispid
)
abstract RefreshPropertyBrowser : 
        dispid:int -> int
function RefreshPropertyBrowser(
    dispid : int
) : int

Parameters

  • dispid
    Type: Int32

Return Value

Type: Int32
[in] Dispatch ID of the property that has changed. Pass DISPID_UNKNOWN to refresh all properties.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIShell::RefreshPropertyBrowser(
   [in]DISPID dispid
);

Implementing IConnectionPointContainer on the selectable objects of a hierarchy is more work than is required. When the properties of an object changes, the object can call IVsUIShell.RefreshPropertyBrowser to tell the Properties window to update (at the same point the object would otherwise have been expected to fire OnChanged).

.NET Framework Security

See Also

Reference

IVsUIShell Interface

Microsoft.VisualStudio.Shell.Interop Namespace