 | CloudNetworkServiceUpdatePortAsync Method |
Updates the specified port.
Namespace: Rackspace.CloudNetworks.v2Assembly: Rackspace (in Rackspace.dll) Version: 0.2.0+Branch.master.Sha.9ad6ce59ab4f7b2400f7a7c9c086aa1c5ea11c4e
Syntaxpublic Task<Port> UpdatePortAsync(
Identifier portId,
PortUpdateDefinition port,
CancellationToken cancellationToken = null
)
Public Function UpdatePortAsync (
portId As Identifier,
port As PortUpdateDefinition,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of Port)
public:
Task<Port^>^ UpdatePortAsync(
Identifier^ portId,
PortUpdateDefinition^ port,
CancellationToken cancellationToken = nullptr
)
member UpdatePortAsync :
portId : Identifier *
port : PortUpdateDefinition *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken null
*)
-> Task<Port>
Parameters
- portId
- Type: RackspaceIdentifier
The port identifier. - port
- Type: Rackspace.CloudNetworks.v2PortUpdateDefinition
The updated 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 updated port.
See Also