Method WithPort
WithPort(ushort)
Get a copy of the endpoint that uses the specified port.
Declaration
public NetworkEndpoint WithPort(ushort port)Parameters
| Type | Name | Description | 
|---|---|---|
| ushort | port | Port number of the new endpoint. | 
Returns
| Type | Description | 
|---|---|
| NetworkEndpoint | Copy of the endpoint that uses the given port. |