Click or drag to resize

ConnectionInfoExtensionsFindAny Method

Find a connection that includes any of the requested areas.

Namespace: Demo3D.PLC.Rockwell.Comms.CIP
Assembly: PLC (in PLC.dll) Version: 19.01.00
Syntax
C#
public static ConnectionInfo? FindAny(
	this IEnumerable<ConnectionInfo> connections,
	params DeviceArea[] areas
)

Parameters

connections  IEnumerableConnectionInfo
List of connections.
areas  DeviceArea
The areas requested.

Return Value

ConnectionInfo
The connection that includes any of the areas requested.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableConnectionInfo. 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