| CloudNetworkServiceExtensionsCreatePort Method |
Creates a port.
Namespace: Rackspace.SynchronousAssembly: Rackspace (in Rackspace.dll) Version: 0.2.0+Branch.master.Sha.9ad6ce59ab4f7b2400f7a7c9c086aa1c5ea11c4e
Syntax public static Port CreatePort(
this CloudNetworkService cloudNetworkService,
PortCreateDefinition port
)
<ExtensionAttribute>
Public Shared Function CreatePort (
cloudNetworkService As CloudNetworkService,
port As PortCreateDefinition
) As Port
public:
[ExtensionAttribute]
static Port^ CreatePort(
CloudNetworkService^ cloudNetworkService,
PortCreateDefinition^ port
)
[<ExtensionAttribute>]
static member CreatePort :
cloudNetworkService : CloudNetworkService *
port : PortCreateDefinition -> Port
Parameters
- cloudNetworkService
- Type: Rackspace.CloudNetworks.v2CloudNetworkService
- port
- Type: Rackspace.CloudNetworks.v2PortCreateDefinition
The port definition.
Return Value
Type:
Port
The created port.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
CloudNetworkService. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also