ISIAPISiteScenarios Interface¶
Namespace: SIDRASolutions.SI.API
Assembly: SIDRASolutions.SI.API.dll
COM CLSID: 88B31F79-E79E-4201-AE13-1D3C94EA14C5
Declaration¶
Get an instance¶
Properties¶
Count¶
Gets the number of SiteScenarios contained in the collection.
Type int
Code samples
this[]¶
Get the SiteScenario from the collection by its name.
Type ISIAPISiteScenario
Remarks
The SiteScenario name is not unique in the collection. It is possible that more than one SiteScenario has the same name. The first SiteScenario found by name is returned. If no SiteScenario is found, null / Nothing is returned.
In C#, use ISIAPISiteScenarios[] to get a SiteScenario by its name or its position in the collection.
In VBA, use Item() to get a SiteScenario by its name or use Item_2() to get by its position.
In C++, use get_Item() to get a SiteScenario by its name or use get_Item_2() by its position.
Code samples
this[]¶
Get the SiteScenario at the specified index.
Type ISIAPISiteScenario
Remarks
In C#, use ISIAPISiteScenarios[] to get a SiteScenario by its name or its position in the collection.
In VBA, use Item() to get a SiteScenario by its name or use Item_2() to get by its position.
In C++, use get_Item() to get a SiteScenario by its name or use get_Item_2() by its position.
Code samples
Methods¶
SiteScenarioExists(string)¶
Queries whether a particular SiteScenario exists in the collection by its name.
Parameters
| Name | Type | Description |
|---|---|---|
siteScenarioName |
string |
SiteScenario name to query |
Returns bool - True, if any SiteScenario with the given name exists in the collection. False otherwise
Remarks
The SiteScenario name is not unique in the collection. It is possible that more than one SiteScenario has the same name.