Click or drag to resize

CIPNodeExtensionsGetOrAddServicesServicesType Method (ICIPNode, ServicesType)

Get or add a CIP services provider.

Namespace:  Demo3D.PLC.Comms.CIP.Nodes
Assembly:  PLC (in PLC.dll) Version: 15.0.2.11458
Syntax
C#
public static ServicesType GetOrAddServices<ServicesType>(
	this ICIPNode node,
	ServicesType services
)
where ServicesType : CIPServices

Parameters

node
Type: Demo3D.PLC.Comms.CIP.NodesICIPNode
The node to add the services provider.
services
Type: ServicesType
The services provider to add.

Type Parameters

ServicesType
The services provider type. Only one of any specific type can be registered at a time.

Return Value

Type: ServicesType
The existing services provider or the newly created services provider.

Usage Note

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