ArcObjects Library Reference (System)  

IStringArray.Element Property

An element in the array.

[Visual Basic .NET]
Public Function get_Element ( _
    ByVal index As Integer _
) As String
[Visual Basic .NET]
Public Sub set_Element ( _
    ByVal index As Integer, _
    ByVal Element As String _
)
[C#]
public string get_Element (
    int index
);
[C#]
public void set_Element (
    int index,
    string Element
);
[C++]
HRESULT get_Element(
  long index,
  BSTR* Element
);
[C++]
HRESULT put_Element(
  long index,
  BSTR Element
);
[C++]

Parameters

index [in]   index is a parameter of type long Element [out, retval]   Element is a parameter of type BSTR index [in]   index is a parameter of type long Element [in]   Element is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Returns or sets the element at the specified index in the array. The element at the beginning or the array has an index of 0, and the element at the end of the array has in index of Count - 1.

See Also

IStringArray Interface

.NET Samples

Closest facility application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ClosestFacility_GISServerAPIClass) | Create a custom raster function (Code Files: WatermarkFunction) | Network Analyst Engine application (Code Files: frmNALayerProperties) | Route application using the NAServer extension in ArcGIS Server via a GIS client (Code Files: Route_GISClientClass) | Route application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: Route_GISServerAPIClass) | Service area application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ServiceArea_GISServerAPIClass) |

.NET Related Topics

Working with SQL workspaces |