NumCSObjects Method of the MIIS_ManagementAgent Class

The NumCSObjects property returns the total number of connector, disconnector, and placeholder objects in this management agent's connector space. To use this method, you must be logged on as a member of the MIISBrowse, MIISOperators, or MIISAdmins security group.

Syntax

string NumCSObjects();

Parameters

This method has no parameters.

Return Value

Returns either a number or a string. If it returns a number, this number indicates the total number of connector, disconnector, and placeholder objects in this management agent's connector space. If it returns a string, the string will contain one of the values listed in WMI Provider Return Strings.

Remarks

The return value is the sum of the total connector objects, the total disconnector objects, and the total placeholder objects, as shown in the following equation:

MIIS_ManagementAgent.NumCSObjects() = MIIS_ManagementAgent.NumTotalConnectors() + MIIS_ManagementAgent.NumTotalDisconnectors() + MIIS_ManagementAgent.NumPlaceHolders()

Examples

The example given in the Methods topic shows you how to use Visual Basic Scripting Edition (VBScript) to get the number of objects in the connector, disconnector, and placeholder objects from all the management agents installed on the server.

Requirements

Product ILM 2007 FP1
MOF Mmswmi.mof

See Also

MIIS_ManagementAgent
MIIS_ManagementAgent.NumPlaceHolders
MIIS_ManagementAgent.NumTotalConnectors
MIIS_ManagementAgent.NumTotalDisconnectors

Send comments about this topic to Microsoft

Build date: 2/16/2009