Cassini Configuration API Documentation

Metabase.CanUsePort Method 

Returns true if given TCP port is not bound and is not assined to any Cassini application.

[Visual Basic]
Public Function CanUsePort( _
   ByVal port As Integer _
) As Boolean
[C#]
public bool CanUsePort(
   int port
);

See Also

Metabase Class | CassiniConfiguration Namespace