Skip to content

ISIAPISiteScenarios Interface

Namespace: SIDRASolutions.SI.API
Assembly: SIDRASolutions.SI.API.dll COM CLSID: 88B31F79-E79E-4201-AE13-1D3C94EA14C5

Declaration

[Guid("88B31F79-E79E-4201-AE13-1D3C94EA14C5")]
public interface ISIAPISiteScenarios

Get an instance

// Navigate to the ISIAPISiteScenarios you need via the ISIAPI tree.
// See ISIAPI for the activation root.
var siteScenarios = /* ... */;
' Navigate to the ISIAPISiteScenarios you need via the ISIAPI tree.
' See ISIAPI for the activation root.
Dim siteScenarios As ISIAPISiteScenarios = Nothing
# Navigate to the ISIAPISiteScenarios you need via the ISIAPI tree.
# See ISIAPI for the activation root.
siteScenarios = ...
# Navigate to the ISIAPISiteScenarios you need via the ISIAPI tree.
# See ISIAPI for the activation root.
$siteScenarios = $null

Properties

Count

Gets the number of SiteScenarios contained in the collection.

int Count { get; }

Type int

Code samples
int count = siteScenarios.Count;
Dim count As Integer = siteScenarios.Count
count = siteScenarios.Count
$count = $siteScenarios.Count

this[]

Get the SiteScenario from the collection by its name.

ISIAPISiteScenario this[] { get; }

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
var this[] = siteScenarios.this[];
Dim this[] As ISIAPISiteScenario = siteScenarios.this[]
this[] = siteScenarios.this[]
$this[] = $siteScenarios.this[]

this[]

Get the SiteScenario at the specified index.

ISIAPISiteScenario this[] { get; }

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
var this[] = siteScenarios.this[];
Dim this[] As ISIAPISiteScenario = siteScenarios.this[]
this[] = siteScenarios.this[]
$this[] = $siteScenarios.this[]

Methods

SiteScenarioExists(string)

Queries whether a particular SiteScenario exists in the collection by its name.

bool SiteScenarioExists(string siteScenarioName)

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.

Code samples
bool result = siteScenarios.SiteScenarioExists(@"Example");
Dim result As Boolean = siteScenarios.SiteScenarioExists("Example")
result = siteScenarios.SiteScenarioExists(r"Example")
$result = $siteScenarios.SiteScenarioExists("Example")