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

Usage

Visual Basic
Dim instance As CSEntry
Dim value As ValueCollection

value = instance.ObjectClass

instance.ObjectClass = value

Syntax

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

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

public abstract function set ObjectClass (value : ValueCollection)

Property Value

Returns a ValueCollection object.

Exceptions

Exception type Condition
System.ArgumentNullException

The property value is null.

System.InvalidOperationException

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

Remarks

Note:
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.

Platforms

Target Platforms

Change History

See Also