CommunicationLinkCollectionAdd Method (String, IServiceProvider, IServiceProvider, AtmosphericRefractionModel) |
Creates a new link from the provided name, 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.3.420.0 (24.3.420.0)
Syntax public ExtensibleObject Add(
string name,
IServiceProvider transmitter,
IServiceProvider receiver,
AtmosphericRefractionModel refractionModel
)
Public Function Add (
name As String,
transmitter As IServiceProvider,
receiver As IServiceProvider,
refractionModel As AtmosphericRefractionModel
) As ExtensibleObject
public:
ExtensibleObject^ Add(
String^ name,
IServiceProvider^ transmitter,
IServiceProvider^ receiver,
AtmosphericRefractionModel^ refractionModel
)
member Add :
name : string *
transmitter : IServiceProvider *
receiver : IServiceProvider *
refractionModel : AtmosphericRefractionModel -> ExtensibleObject
Parameters
- name
- Type: SystemString
The name of the link. - transmitter
- Type: SystemIServiceProvider
The transmitter on the link. - receiver
- Type: SystemIServiceProvider
The receiver on the link. - refractionModel
- Type: AGI.Foundation.CelestialAtmosphericRefractionModel
The model used to model atmospheric refraction.
Return Value
Type:
ExtensibleObjectA reference to the existing or new link that was added to the collection.
Exceptions See Also