FieldNames |
Scroll |
Gets an TheEnumerable object allowing you to iterate through the field names (i.e. the string keys) of the index data map.
Namespace: Therefore.API
Visual Basic Public Overridable Readonly Property FieldNames As TheEnumerable C# public virtual TheEnumerable FieldNames { get; }
Property ValueAn TheEnumerable object allowing you to iterate through the field names of the index data map. |
For Each SupportTheEnumerable supports the For Each / foreach control structures offered in Visual Basic and C#. The example below shows how to iterate FieldNames in those languages. |
Visual Basic ' Declare and create a new TheIndexData object Dim indexData As TheIndexData = New TheIndexData()
' Make two entries indexData("Filename") = "MyDocument.doc" indexData("FileType") = "MS Word"
' Iterate through field names Dim s As String For Each s In indexData.FieldNames Console.WriteLine(s) Next C# // Declare and create a new TheIndexData object TheIndexData indexData = new TheIndexData();
// Make two entries indexData["Filename"] = "MyDocument.doc"; indexData["FileType"] = "MS Word";
// Iterate through field names foreach (string s in indexData.FieldNames) Console.WriteLine(s); |