Gets a ValueCollection object that contains the object class of the connector space entry.
Namespace: Microsoft.MetadirectoryServices
Assembly: Microsoft.MetadirectoryServicesEx (in microsoft.metadirectoryservicesex.dll)


Visual Basic
Dim instance As CSEntry
Dim value As ValueCollection

value = instance.ObjectClass

instance.ObjectClass = value


Visual Basic
Public MustOverride Property ObjectClass As ValueCollection
public abstract ValueCollection ObjectClass { get; set; }
virtual property ValueCollection^ ObjectClass {
		ValueCollection^ get () abstract;
		void set (ValueCollection^ value) abstract;
/** @property */
public abstract ValueCollection get_ObjectClass ()

/** @property */
public abstract void set_ObjectClass (ValueCollection value)
public abstract function get ObjectClass () : ValueCollection

public abstract function set ObjectClass (value : ValueCollection)

Property Value

Returns a ValueCollection object.


Exception type Condition

The property value is null.


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


You can write to this property only in the Provision method.

The ObjectClass property usually returns a ValueCollection object with a single entry that has the same value as the ObjectType property. For file-based management agents, the ObjectClass property returns a ValueCollection object that contains one item, and the ObjectType property returns a String. For the Active Directory management agent, the ObjectClass property returns multiple items in its ValueCollection object, and the ObjectType property returns only the primary object type. For example, for a user object, the ObjectClass property returns top, person, organizationalPerson, and user. The ObjectType property returns user. Use the ObjectType property 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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms

Change History

See Also