다음을 통해 공유


7.6.2.1 Initializing a Connection to a Directory Server

This task initializes an instance of the ConnectionInfo element.

The parameters for this task are as follows:

Name

Type

Description

Optional

TaskInputTargetName

String(Unicode)

A string used to locate a domain controller. It can be NULL (which indicates that the joined domain name SHOULD be used), the domain name (DNS/NetBIOS), the server host name, or the server IP address.

No

TaskInputPortNumber

Unsigned integer

The destination TCP port number ([RFC793] section 1.5, Operation) to use when connecting to the directory server specified by TaskInputTargetName.

No

The task returns the following results to the caller:

Name

Type

Description

TaskReturnConnectionInfo

ConnectionInfo

An instance of the ConnectionInfo ADM element.

The task performs the following actions:

  1. An instance of the ConnectionInfo ADM element is created and the values in the ADM are initialized to their default values. The default value of ConnectionInfo.networkConnection causes a new TCP connection to be used that is not associated with an existing ADConnection.

  2. ConnectionInfo.targetName is set to the input parameter TaskInputTargetName.

  3. ConnectionInfo.portNumber is set to the input parameter TaskInputPortNumber.

  4. The ConnectionInfo instance is returned to the caller as TaskReturnConnectionInfo.