Exists
Checks whether there is a NIS map with the specified name.
Syntax
bool Exists(string mapName)
Parameter
Specify the following parameter when using this method:
Parameter | Description |
mapName |
The map name whose existence you want to check for. |
Return value
Returns true if the specified NIS map exists.
Exceptions
Exists throws a COMException if an error occurs during a call to the underlying interface.
Example
The following code sample illustrates the use of Store.Exists:
SET cims = CreateObject("Centrify.DirectControl.Cims3") SET zone = cims.GetZone("example.org/Zones/default") SET store = CreateObject("Centrify.DirectControl.Nis.Store") store.Attach zone.ADsPath, "username", "password" IF NOT store.Exists("netgroup") THEN store.Create "netgroup", "408EE104-1864-41fa-B346-19FED4092E68" END IF