IRemoteArgumentDictionaryEnumeratorContract.GetValue Method

Definition

Returns the value of the current IRemoteArgumentDictionaryContract entry.

C#
public System.AddIn.Contract.RemoteArgument GetValue ();

Returns

A RemoteArgument that contains the value of the current IRemoteArgumentDictionaryContract entry.

Exceptions

The IRemoteArgumentDictionaryEnumeratorContract is positioned before the first entry of the IRemoteArgumentDictionaryContract or after the last entry.

Remarks

After an enumerator is created or after the Reset method is called, the MoveNext method must be called to advance the enumerator to the first element of the collection before calling the GetValue method; otherwise, the return value of GetValue is undefined.

GetValue also throws an exception if the last call to MoveNext returned false, which indicates the end of the collection.

GetValue does not move the position of the enumerator, and consecutive calls to GetValue return the same object until either MoveNext or Reset is called.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1