CSEntry.ObjectClass Property

The ObjectClass property retrieves a ValueCollection object that contains the object class of the connector space entry.
Note  You can write to this property only in the IMVSynchronization.Provision method.

public ValueCollection ObjectClass {get; set;}
Public Property ObjectClass As ValueCollection

Exceptions

Exception type Condition
ArgumentNullException

The property value is null.

InvalidOperationException

There are no object classes or the CSEntry object is a disconnector object.

Remarks

The ObjectClass property usually returns a ValueCollection with a single entry that has the same value as the ObjectType property. For file-based management agents, the ObjectClass property returns a ValueCollection that contains one item, and ObjectType returns a String. For the Active Directory management agent, ObjectClass returns multiple items in its ValueCollection, and ObjectType returns only the primary object type. For example, for a "user" object, ObjectClass returns "top", "person", "organizationalPerson", and "user"; ObjectType returns "user". Use ObjectType to determine the type of a connector space object, such as if you want to determine whether an object is a user or a group.

Requirements

Product ILM 2007 FP1
Namespace Microsoft.MetadirectoryServices
Assembly Microsoft.MetadirectoryServices
.NET Framework .NET Framework 2.0

See Also

CSEntry
ValueCollection
Provisioning Objects in the Connector Space
Example: Changing the ObjectClass Property

Send comments about this topic to Microsoft

Build date: 2/16/2009