CommunicationLinkCollectionAdd Method (IServiceProvider, IServiceProvider) |
Creates a new link from the provided transmitter and receiver and adds it to the collection.
If a link in the collection already exists for the specified transmitter and receiver pair,
no new link is created and the existing link is returned instead.
Namespace:
AGI.Foundation.Communications
Assembly:
AGI.Foundation.Communications (in AGI.Foundation.Communications.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public ExtensibleObject Add(
IServiceProvider transmitter,
IServiceProvider receiver
)
Public Function Add (
transmitter As IServiceProvider,
receiver As IServiceProvider
) As ExtensibleObject
public:
ExtensibleObject^ Add(
IServiceProvider^ transmitter,
IServiceProvider^ receiver
)
member Add :
transmitter : IServiceProvider *
receiver : IServiceProvider -> ExtensibleObject
Parameters
- transmitter
- Type: SystemIServiceProvider
The transmitter on the link. - receiver
- Type: SystemIServiceProvider
The receiver on the link.
Return Value
Type:
ExtensibleObjectA reference to the existing or new link that was added to the collection.
See Also