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


Node::IsScopeNode method

The IsScopeNode method returns whether the node is a scope node.

Syntax

Node.IsScopeNode() As Long

Parameters

This method has no parameters.

Remarks

Nodes that appear in the scope tree are scope nodes. Be aware that the child of a scope node may also be a scope node. If the child of a scope node appears in both the scope tree and the result view, then calling the IsScopeNode method using the child's Node object will return 1.

Examples

' Determine if the node is a scope node.
Dim lScopeNode As Long
lScopeNode = objNode.IsScopeNode()
If (1 = lScopeNode) Then
    MsgBox ("Node is a ScopeNode")
Else
    MsgBox ("Node is not a ScopeNode")
End If

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
MMCObj.h
IDL
MMCObj.idl
DLL
Mmc.exe
IID
IID_Node is defined as F81ED800-7839-4447-945D-8E15DA59CA55