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