HostingEngine.TryDetermineCustomPort Method (StartOptions, Int32)
Tries to determine a custom port setting from the startup options or the port environment variable.
Namespace: Microsoft.Owin.Hosting.Engine
Assembly: Microsoft.Owin.Hosting (in Microsoft.Owin.Hosting.dll)
Syntax
public static bool TryDetermineCustomPort(
StartOptions options,
out int port
)
public:
static bool TryDetermineCustomPort(
StartOptions^ options,
[OutAttribute] int% port
)
static member TryDetermineCustomPort :
options:StartOptions *
port:int byref -> bool
Public Shared Function TryDetermineCustomPort (
options As StartOptions,
<OutAttribute> ByRef port As Integer
) As Boolean
Parameters
options
Type: Microsoft.Owin.Hosting.StartOptionsThe OWIN application startup options.
port
Type: System.Int32The port number.
Return Value
Type: System.Boolean
True if a valid custom port was set, false if not.
See Also
HostingEngine Class
Microsoft.Owin.Hosting.Engine Namespace
Return to top