Compartir a través de


DS_LDAP_Instance_Containment class

DS_LDAP_Instance_Containment is an instance class that models the container relationships in the Active Directory, and is supported by the Active Directory instance provider.

Syntax

[Association, dynamic, provider("Microsoft|DSLDAPInstanceProvider|V1.0"), AMENDMENT]
class DS_LDAP_Instance_Containment
{
  DS_LDAP_Root_Class REF ChildInstance;
  DS_LDAP_Root_Class REF ParentInstance;
};

Members

The DS_LDAP_Instance_Containment class has these types of members:

Properties

The DS_LDAP_Instance_Containment class has these properties.

ChildInstance

Data type: DS_LDAP_Root_Class

Access type: Read-only

Qualifiers: KEY

Reference to an DS_LDAP_Root_Class that represents the child Directory Services instance.

ParentInstance

Data type: DS_LDAP_Root_Class

Access type: Read-only

Qualifiers: KEY

Reference to an DS_LDAP_Root_Class that represents the parent Directory Services instance.

Remarks

The DS_LDAP_Instance_Containment class supports the GetObjectAsync and ExecuteQueryAsync methods.

The DS_LDAP_Instance_Containment class supports only the following forms of querying that help a client navigate the object hierarchy:

  • A query in which the child instance is specified.

    SELECT * FROM DS_LDAP_Instance_Containment 
    WHERE ChildInstance=<InstancePath>
    
  • A query in which the parent instance is specified.

    SELECT * FROM DS_LDAP_Instance_Containment 
    WHERE ParentInstance=<InstancePath>
    
  • A query in which the child instance and parent instance are specified.

    SELECT * FROM DS_LDAP_Instance_Containment 
    WHERE ChildInstance=<InstancePath> 
        AND ParentInstance=<InstancePath>
    

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\directory\ldap
MOF
Dsprov.mof
DLL
Dsprov.dll