Share via


MapIterator.valuePair Method

Definition

Retrieves a container that holds the key and the value.

public:
 virtual cli::array <System::Object ^> ^ valuePair();
public virtual object[] valuePair ();
abstract member valuePair : unit -> obj[]
override this.valuePair : unit -> obj[]
Public Overridable Function valuePair () As Object()

Returns

Object[]

A container that holds the key and the value.

Remarks

Objects cannot reside in containers. Therefore, an exception is raised if either the key or the value is an object.

Applies to