IADsClass Property Methods

Property methods take the form of either get_<property> or put_<property>. The property methods of the IADsClass interface get or set the properties described below. For more information, see Interface Property Methods.

Properties in Vtable Order

Property Access Method Prototype
Abstract R/W HRESULT get_Abstract
([out] BOOLEAN *pbAbstract);

HRESULT put_Abstract
([in] BOOLEAN bAbstract);

AuxDerivedFrom R/W HRESULT get_AuxDerivedFrom
([out] VARIANT *pvAuxDerivedFrom);

HRESULT put_AuxDerivedFrom
([in] VARIANT vAuxDerivedFrom);

Auxiliary R/W HRESULT get_Auxiliary
([out] BOOLEAN *pbAuxiliary);

HRESULT put_Auxiliary
([in] BOOLEAN bAuxiliary);

CLSID R/W HRESULT get_CLSID
([out] BSTR *pbstrCLSID);

HRESULT put_CLSID
([in] BSTR bstrCLSID);

Container R/W HRESULT get_Container
([out] BOOLEAN *pbContainer);

HRESULT put_Container|
([in] BOOLEAN bContainer);

Containment R/W HRESULT get_Containment
([out] VARIANT *pvContainment);

HRESULT put_Containment
([in] VARIANT vContainment);

DerivedFrom R/W HRESULT get_DerivedFrom
([out] VARIANT *pvDerivedFrom);

HRESULT put_DerivedFrom
([in] VARIANT vDerivedFrom);

HelpFileContext

(optional)

R/W HRESULT get_HelpFileContext
([out] BSTR *pbstrHelpFileContext);

HRESULT put_HelpFileContext
([in] BSTR bstrHelpFileContext);

HelpFileName

(optional)

R/W HRESULT get_HelpFileName
([out] BSTR *pbstrHelpFileName);

HRESULT put_HelpFileName
([in] BSTR bstrHelpFileName);

MandatoryProperties R/W HRESULT get_MandatoryProperties
([out] VARIANT *pvarMandatoryProperties);

HRESULT put_MandatoryProperties
([in] VARIANT varMandatoryProperties);

OptionalProperties R/W HRESULT get_OptionalProperties
([out] VARIANT *pvarOptionalProperties);

HRESULT put_OptionalProperties
([in] VARIANT varOptionalProperties);

NamingProperties R/W HRESULT get_NamingProperties
([out] VARIANT *pvarNamingProperties);

HRESULT put_NamingProperties
([in] VARIANT varNamingProperties);

OID R/W HRESULT get_OID
([out] BSTR *pbstrOID);

HRESULT put_OID
([in] BSTR bstrOID);

PossibleSuperiors R/W HRESULT get_PossibleSuperiors
([out] VARIANT *pvSuperiors);

HRESULT put_PossibleSuperiors
([in] VARIANT vSuperiors);

PrimaryInterface R/O HRESULT get_PrimaryInterface
([out] BSTR *pbstrGUID);

Property Descriptions

Abstract
Boolean value indicating whether this class is Abstract or non-abstract. When TRUE this class is an Abstract class and cannot be directly instantiated in the directory service. Abstract classes can only be used as superclasses.
Auxiliary
Boolean value indicating whether or not this class is Auxiliary. When TRUE this class is an Auxiliary class and cannot be directly instantiated in the DS. Auxiliary classes can only be used as superclasses of other Auxiliary classes or as a source of additional properties on structural classes.
AuxDerivedFrom
Array of ADsPath strings that indicate the Auxiliary classes contributing to this class.
CLSID
Optional provider-specific CLSID that associates a COM object with this class.
Container
Property that determines if this class is an Active Directory container.
Containment
Container types that can contain objects of this class. Each container name is an element in a BSTR array.
DerivedFrom
Array of ADsPath strings that indicate which classes this class was derived from.
HelpFileContext
Context ID inside HelpFileName where specific information on this class can be found.
HelpFileName
Name of a help file (no path) that contains further information about objects of this class.
MandatoryProperties
SAFEARRAY of BSTRs listing the properties that must be set for this class to be written to storage.
NamingProperties
SAFEARRAY of BSTRs listing the properties that are for naming attributes of this schema class. For example, in NDS, "CN" and "OU" are naming properties.
OID
Provider-specific Object Identifier defining this class. This is provided to allow schema extension via Active Directory in directory services that require provider-specific OIDs for classes.
OptionalProperties
SAFEARRAY of BSTRs listing the properties that are optional for this schema class.
PossibleSuperiors
Array of ADsPath strings that indicate the schema classes that can contain instances of this class.
PrimaryInterface
Optional provider-specific identifier GUID that associates an interface with objects of this schema class. For example, the "User" class is defined by supporting IADsUser; the Primary interface is identified by IID_IADsUser. This must be in the standard string format of a GUID as defined by COM. This GUID is the value that will appear in the IADs::get_GUID property in instances of this class for providers that implement this property. Identifying a schema class by IID of the class code's primary interface enables the use of QueryInterface at run time to determine whether an object is of the desired class.