int GetDirection(int port)
This method retrieves the current direction register for the specified digital I/O port. See the SetDirection Method for further description of the direction register.
This method returns an integer. The return value is the port's current direction register.