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.


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


The default value is 389.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security