NWListener.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Create(NWParameters) | |
| Create(NWConnection, NWParameters) | |
| Create(NWParameters, String) |
Creates an NWListener instance from a launchd key. |
| Create(String, NWParameters) |
Create(NWParameters)
public static Network.NWListener? Create(Network.NWParameters parameters);
static member Create : Network.NWParameters -> Network.NWListener
Parameters
- parameters
- NWParameters
Returns
Applies to
Create(NWConnection, NWParameters)
public static Network.NWListener? Create(Network.NWConnection connection, Network.NWParameters parameters);
static member Create : Network.NWConnection * Network.NWParameters -> Network.NWListener
Parameters
- connection
- NWConnection
- parameters
- NWParameters
Returns
Applies to
Create(NWParameters, String)
Creates an NWListener instance from a launchd key.
public static Network.NWListener? Create(Network.NWParameters parameters, string launchd_key);
static member Create : Network.NWParameters * string -> Network.NWListener
Parameters
- parameters
- NWParameters
The parameters to use for the listener, including the protocols to use.
- launchd_key
- String
The name of the socket entry as specified in the launchd.plist.
Returns
A new NWListener instance, or null if not successful.
Applies to
Create(String, NWParameters)
public static Network.NWListener? Create(string port, Network.NWParameters parameters);
static member Create : string * Network.NWParameters -> Network.NWListener
Parameters
- port
- String
- parameters
- NWParameters