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: 18.04.00
Syntax
C#
public static ConnectionInfo? FindAny(
	this IEnumerable<ConnectionInfo> connections,
	params DeviceArea[] areas
)

Parameters

connections
Type: System.Collections.GenericIEnumerableConnectionInfo
List of connections.
areas
Type: Demo3D.PLC.Rockwell.CommsDeviceArea
The areas requested.

Return Value

Type: 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