NetworkComms ConnectionExists Method (ShortGuid, ConnectionType, ApplicationLayerProtocolStatus)NetworkComms.Net Help
Check if a connection exists with the provided parameters.

Namespace: NetworkCommsDotNet
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public static bool ConnectionExists(
	ShortGuid networkIdentifier,
	ConnectionType connectionType,
	ApplicationLayerProtocolStatus applicationLayerProtocol = ApplicationLayerProtocolStatus.Enabled
)

Parameters

networkIdentifier
Type: NetworkCommsDotNet.Tools ShortGuid
The ShortGuid corresponding with the desired peer networkIdentifier
connectionType
Type: NetworkCommsDotNet.Connections ConnectionType
The ConnectionType desired. ConnectionType.Undefined matches all types.
applicationLayerProtocol (Optional)
Type: NetworkCommsDotNet.Connections ApplicationLayerProtocolStatus
Connections with matching ApplicationLayerProtocolStatus. Use ApplicationLayerProtocolStatus.Undefined to match all status types.

Return Value

Type: OnlineBoolean
True if a matching connection exists, otherwise false
See Also