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
‘선언
Function RefreshPropertyBrowser ( _
dispid As Integer _
) As Integer
‘사용 방법
Dim instance As IVsUIShell
Dim dispid As Integer
Dim returnValue As Integer
returnValue = instance.RefreshPropertyBrowser(dispid)
int RefreshPropertyBrowser(
int dispid
)
int RefreshPropertyBrowser(
[InAttribute] int dispid
)
function RefreshPropertyBrowser(
dispid : int
) : int
Parameters
dispid
Type: System.Int32[in] Dispatch ID of the property that has changed. Pass DISPID_UNKNOWN to refresh all properties.
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).
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.