CIPNodeExtensionsGetOrAddServicesServicesType Method (ICIPNode, FuncType, ServicesType) |
Get or add a CIP services provider.
Namespace:
Demo3D.PLC.Comms.CIP.Nodes
Assembly:
PLC (in PLC.dll) Version: 15.0.2.11458
Syntaxpublic static ServicesType GetOrAddServices<ServicesType>(
this ICIPNode node,
Func<Type, ServicesType> servicesFactory
)
where ServicesType : CIPServices
Parameters
- node
- Type: Demo3D.PLC.Comms.CIP.NodesICIPNode
The node to add the services provider. - servicesFactory
- Type: SystemFuncType, ServicesType
A function for creating the services provider.
Type Parameters
- ServicesType
- The services provider type. Only one of any specific type can be registered at a time.
Return Value
Type:
ServicesTypeThe 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