IVsToolsOptions.RefreshPageVisibility Method
Refreshes the visibility of the Tools Options dialog box.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣告
Function RefreshPageVisibility As Integer
'用途
Dim instance As IVsToolsOptions
Dim returnValue As Integer
returnValue = instance.RefreshPageVisibility()
int RefreshPageVisibility()
int RefreshPageVisibility()
abstract RefreshPageVisibility : unit -> int
function RefreshPageVisibility() : int
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
To associate a Tools Options node with the context of a command's user interface (UI), add a subkey, VisibilityCmdUIContexts, that contains entries whose names are the context GUIDs. It then becomes visible only if one or more of those contexts are active. This method evaluates the visibility of a Tools Options dialog box based on the currently active contexts.
.NET Framework Security
- 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.