Adds the gateway to the servers list of valid objects

Namespace: Monnit.Mine
Assembly: 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

ExceptionCondition
System..::..ArgumentNullExceptionParameter "gateway" is null
System..::..ArgumentExceptionThere is already a gateway registered with the same gatewayID, or gatewayID property of gateway is not valid (Zero is not a valid gatewayID)

See Also