RenameStateSet Method (StateSets collection)

                

 

Renames an existing StateSet in the StateSets collection. The call renames the StateSet on the Server as well as in the in-memory StateSets collection.

 

Syntax

object.RenameStateSet OldName, NewName

The RenameStateSet method syntax has these parts:

Part

Description

object

An object expression that evaluates to a StateSets collection.

OldName

A string containing the name of an existing StateSet to rename.

NewName

 A string containing the new name for the indicated StateSet.

 

Remarks

 

Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error

Description

pseLOADSTATESETS

Unable to load the existing collection of StateSets from the server.

pseSTATESETNOTFOUND

The requested StateSet was not found on the server.

pseSTATESETRENAME

Unable to rename the StateSet. The error description will contain more information regarding the problem.

Enabling Operational Intelligence