ISIAPISites Interface¶
Namespace: SIDRASolutions.SI.API
Assembly: SIDRASolutions.SI.API.dll
COM CLSID: 625B0EF4-D136-4519-ABEF-8D442950790A
Site collection wrapper interface
Declaration¶
Get an instance¶
Properties¶
Count¶
Gets the number of Sites contained in the collection.
Type int
Code samples
this[]¶
Get the Site from the collection by the Site name.
Type ISIAPISite
Remarks
The Site name is not unique in the collection. It is possible that more than one Site has the same name. The first Site found by name is returned. If no Site is found, null / Nothing is returned.
In C#, use ISIAPISites[] to get a Site by its name or its position in the collection.
In VBA, use Item() to get a Site by its name or use Item_2() to get by its position.
In C++, use get_Item() to get a Site by its name or use get_Item_2() by its position.
Code samples
this[]¶
Get the Site at the specified index.
Type ISIAPISite
Remarks
In C#, use ISIAPISites[] to get a Site by its name or its position in the collection.
In VBA, use Item() to get a Site by its name or use Item_2() to get by its position.
In C++, use get_Item() to get a Site by its name or use get_Item_2() by its position.
Code samples
Methods¶
SiteExists(string)¶
Queries whether a particular Site exists in the collection by its name.
Parameters
| Name | Type | Description |
|---|---|---|
sitename |
string |
Site name to query |
Returns bool - True, if any Site with the given name exists in the collection. False otherwise
Remarks
The Site name is not unique in the collection. It is possible that more than one Site has the same name.
Code samples
GetSiteByID(string)¶
Get the Site by its GUID.
Parameters
| Name | Type | Description |
|---|---|---|
site_id |
string |
The GUID of the Site object, i.e. ISIAPISite.Site_id. This is different from the "Site ID" in the Intersection dialog, i.e. ISIAPISite.Intersectionid. |
Returns ISIAPISite