View::IsSelected method

The IsSelected method returns whether the specified node is selected.

Syntax

View.IsSelected( _
  ByVal Node As Node _
) As Long

Parameters

Node

The Node object whose selection state is being queried.

Examples

' This code determines if the first node is selected.
' Retrieve the first node.
Dim node1 As MMC20.Node
Set node1 = objView.ListItems(1)
 
' Determine if the node is selected.
Dim nSelected As Long
nSelected = objView.IsSelected(node1)
If (nSelected = 1) Then
    MsgBox ("The first node is selected")
Else
    MsgBox ("The first node is not selected")
End If
 
' Free the Node object when done.
Set node1 = Nothing

Requirements

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

See also

View.Select

View.SelectAll