DPINodeExtensionsGetOrAddServicesServicesType Method (IDPINode, ServicesType) |
Get or add a DPI services provider.
Namespace:
Demo3D.PLC.Rockwell.Comms.DPI.Nodes
Assembly:
PLC (in PLC.dll) Version: 14.0.0.10531
Syntaxpublic static ServicesType GetOrAddServices<ServicesType>(
this IDPINode node,
ServicesType services
)
where ServicesType : DPIServices
Parameters
- node
- Type: Demo3D.PLC.Rockwell.Comms.DPI.NodesIDPINode
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:
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
IDPINode. 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