Partager via


View Object object

The View object encapsulates a single MDI child window in the MMC console.

Additionally, the View object serves as the external object when an MMC snap-in hosts Microsoft Internet Explorer browser components.

Members

The View Object object has these types of members:

Methods

The View Object object has these methods.

Method Description
Back Moves to the previous view.
Close Closes the view.
CopyScopeNode Copies the data object of the specified scope node to the clipboard.
CopySelection Copies the data object of the current selection to the clipboard.
DeleteScopeNode Deletes the specified scope node.
DeleteSelection Deletes the selected items.
Deselect Clears a single node.
DisplayScopeNodePropertySheet Displays the property sheet for a specified scope node.
DisplaySelectionPropertySheet Displays the property sheet for the current selection.
ExecuteScopeNodeMenuItem Executes a menu item for the specified scope item.
ExecuteSelectionMenuItem Executes a menu item for the current selection.
ExecuteShellCommand Executes a shell command in a window.
ExportList Exports the view list to a specified file.
Forward Moves to the next view.
Is Returns whether this view is the same as a specified view.
IsSelected Returns whether a single node is selected.
RefreshScopeNode Refreshes the display of the specified scope node.
RefreshSelection Refreshes the display of the selected items.
RenameScopeNode Renames a specified scope node.
RenameSelectedItem Renames the selected item.
Select Selects a single item in the result pane.
SelectAll Selects all items in the result pane.
SnapinScopeObject Returns the automation interface of the snap-in for the specified scope node.
SnapinSelectionObject Returns the automation interface of the snap-in selection.
ViewMemento Restores the view to a previously recorded state.

Properties

The View Object object has these properties.

Property Access type Description
ActiveScopeNode
Read/write
The active scope node, which owns the view.
CellContents
Read-only
Returns the contents of a cell referenced by a Node object and a column.
Columns
Read-only
Returns the Columns object for the list view.
ControlObject
Read-only
Returns the automation interface supplied by the control in the result pane. This property is valid only when an OCX control is displayed in the result view.
Document
Read-only
The Document object that represents the parent of the view.
Frame
Read-only
The Frame object for the view.
ListItems
Read-only
Returns a Nodes object that represents all items in the list.
ListViewMode
Read/write
Returns the mode of the list view; applies only if a list view is being displayed.
Memento
Read-only
Returns a string that represents the current view.
ScopeNodeContextMenu
Read/write
The ContextMenu object for a given node.
ScopeTreeVisible
Read/write
The visible state for the scope tree.
Selection
Read-only
The set of selected result nodes.
SelectionContextMenu
Read-only
The ContextMenu object for the selected node.
StatusBarText
Write-only
The text in the status bar.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
MMCObj.h
IDL
MMCObj.idl
DLL
MmcNdMgr.dll
IID
IID_View is defined as 6EFC2DA2-B38C-457E-9ABB-ED2D189B8C38