Name

Gets or sets the name of the zone.

Syntax

string name {get; set;}

Property value

The short name of the zone. The name must start with an alphanumeric character or an underscore (_) character and can contain any combination of letters (upper- or lowercase), numerals 0 through 9, and the period (.), hyphen (-) and underscore (_)characters up to a maximum length of 64 characters.

Exceptions

Name throw an ArgumentException if you try to set an invalid name for the zone.

Example

The following code sample illustrates setting this property in a script:

...
'Specify the zone you want to work with
set zone = cims.GetZone("zap.org/Program Data/Acme/Zones/default")
'Change the name of the “default” zone to “Pilot deployment”
zone.Name = "Pilot deployment"
zone.Commit()
...