MapEnumerator.Definitionstring Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a description of the enumerator. For example, an enumerator for a map of integers to strings would return "[int -> str] enumerator".
public:
virtual System::String ^ Definitionstring();
public string Definitionstring ();
abstract member Definitionstring : unit -> string
override this.Definitionstring : unit -> string
Public Function Definitionstring () As String
Returns
A string that contains a description of the enumerator.
Implements
Remarks
The following example creates a map and an enumerator for it, and then it prints out a definition of the enumerator.
{
Map myMap = new Map(Types::Integer, Types::String);
MapEnumerator enumerator;
int i;
// Add some elements to the map
myMap.insert(1, "Element one");
myMap.insert(2, "Element two");
myMap.insert(3, "Element three");
myMap.insert(4, "Element Four");
// Set the enumerator
enumerator = myMap.getEnumerator();
print enumerator.definitionString();
pause;
}