Port Property

The Port property of the DomainController class gets or sets the service port number for the Active Directory directory service server from which to import user profiles .

Property Value

Int32 The port number for the server from which to import user profiles.

Exceptions

Exception Type Condition
InvalidValueException Port value is not within the values of 0 and 65535

Remarks

The default value is 389.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security