Gets the version number of the Active Directory data schema.


long Version {get;}

Property value

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


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.


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("”) 
Console WriteLine “Schema version number: “ + computer.Version