Поделиться через


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

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

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