Adds the gateway to the servers list of valid objects
Namespace: Monnit.MineAssembly: MonnitMineAPI (in MonnitMineAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public void RegisterGateway( Gateway gateway ) |
| Visual Basic |
|---|
Public Sub RegisterGateway ( gateway As Gateway ) |
| Visual C++ |
|---|
public: void RegisterGateway( Gateway^ gateway ) |
| F# |
|---|
member RegisterGateway : gateway : Gateway -> unit |
Parameters
- gateway
- Type: Monnit.Mine..::..Gateway
Gateway object
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | Parameter "gateway" is null |
| System..::..ArgumentException | There is already a gateway registered with the same gatewayID, or gatewayID property of gateway is not valid (Zero is not a valid gatewayID) |