Version

Gets the version number of the Active Directory data schema.

Syntax

long Version {get;}

Property value

The version number of the Active Directory schema as a long integer value.

Discussion

This property can be used only in .NET programs because .NET supports 64-bit signed numbers. This property cannot be used in COM-based programs. For COM-based programs, use the SchemaVersion property instead.

Example

The following code sample illustrates using Version for a computer object in a script:

...
//Create the top-level object
Cims cims = new Cims()
//Identify the computer account
IComputer computer = cims.GetComputer("ajax.org/Computers/backup78”) 
Console WriteLine “Schema version number: “ + computer.Version
...