6.2.5.1 CloseConnections signature

This Method disables one or more Connections. Optionally, it also removes these Connections. It is recommended that this Method has the execute privilege for the well-known Role ConnectionAdmin as defined in Clause 5.9.

The signature of the Method is described below, and the arguments are described in Table 22.

Signature

	CloseConnections (
	  [in] 0:NodeId[]			ConnectionEndpoints,
	  [in] 0:Boolean			Remove,
	  [out] 0:StatusCode[]		Results
	);
Table 22 – CloseConnections Method arguments
Argument Description
ConnectionEndpointsThe list of Connections to be closed.
RemoveWhen TRUE, the Objects dynamically created for the Connection are removed.
Results

The results of closing the Connections identified by the ConnectionEndpoints argument, see Table 24.

The length of this array shall match the length of the ConnectionEndpoints list.

Clients may inspect this list to determine which Connections failed to be closed.

The possible Method result codes are formally defined in Table 23.

Table 23 – CloseConnections Method result codes
Result Code Description
UncertainThere was at least one error or warning for one of the Connections. Results will contain additional information.

The possible Results StatusCodes are formally defined in Table 24.

Table 24 – Results StatusCodes
Result Code Description
Bad_NodeIdUnknownThe NodeId for the requested ConnectionEndpoint does not exist in the Server address space.
Bad_NodeIdInvalidThe syntax of the NodeId for the requested ConnectionEndpoint was invalid.
Bad_InvalidArgumentThe NodeId for the requested ConnectionEndpoint was not a ConnectionEndpoint.

The CloseConnections Method representation in the AddressSpace is formally defined in Table 25.

Table 25 – CloseConnections Method AddressSpace definition
Attribute Value
BrowseName3:CloseConnections
References Node Class BrowseName DataType TypeDefinition Other
0:HasPropertyVariable0:InputArguments0:Argument[] 0:PropertyTypeM
0:HasPropertyVariable0:OutputArguments0:Argument[] 0:PropertyTypeM
0:GeneratesEventObjectType2:AuditUpdateMethodResultEventTypeDefined in 8.2
ConformanceUnits
UAFX AutomationComponent Base