| CloudNetworkServiceCreatePortAsync Method |
Creates a port.
Namespace: Rackspace.CloudNetworks.v2Assembly: Rackspace (in Rackspace.dll) Version: 0.2.0+Branch.master.Sha.9ad6ce59ab4f7b2400f7a7c9c086aa1c5ea11c4e
Syntax public Task<Port> CreatePortAsync(
PortCreateDefinition port,
CancellationToken cancellationToken = null
)
Public Function CreatePortAsync (
port As PortCreateDefinition,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Port)
public:
Task<Port^>^ CreatePortAsync(
PortCreateDefinition^ port,
CancellationToken cancellationToken = nullptr
)
member CreatePortAsync :
port : PortCreateDefinition *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken null
*)
-> Task<Port>
Parameters
- port
- Type: Rackspace.CloudNetworks.v2PortCreateDefinition
The port definition. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Return Value
Type:
TaskPort
The created port.
See Also