Muokkaa

Jaa


GenericPair<TValue1,TValue2> Constructors

Definition

Constructs a new GenericPair<TValue1,TValue2> object.

Overloads

GenericPair<TValue1,TValue2>()

Constructs a new GenericPair<TValue1,TValue2> object with default values for first and second.

GenericPair<TValue1,TValue2>(GenericPair<TValue1,TValue2>)

Constructs a new GenericPair<TValue1,TValue2> object from an existing GenericPair<TValue1,TValue2> object.

GenericPair<TValue1,TValue2>(KeyValuePair<TValue1,TValue2>)

Constructs a new GenericPair<TValue1,TValue2> object from an existing KeyValuePair<TKey,TValue> object.

GenericPair<TValue1,TValue2>(TValue1)

Constructs a new GenericPair<TValue1,TValue2> object and assigns its first value to the specified value.

GenericPair<TValue1,TValue2>(TValue1, TValue2)

Constructs a new GenericPair<TValue1,TValue2> object with the two values specified.

Remarks

For more information, see pair::pair (STL/CLR).

GenericPair<TValue1,TValue2>()

Constructs a new GenericPair<TValue1,TValue2> object with default values for first and second.

public:
 GenericPair();
public GenericPair ();
Public Sub New ()

Remarks

For more information, see pair::pair (STL/CLR).

Applies to

GenericPair<TValue1,TValue2>(GenericPair<TValue1,TValue2>)

Constructs a new GenericPair<TValue1,TValue2> object from an existing GenericPair<TValue1,TValue2> object.

public:
 GenericPair(Microsoft::VisualC::StlClr::GenericPair<TValue1, TValue2> ^ _Right);
public GenericPair (Microsoft.VisualC.StlClr.GenericPair<TValue1,TValue2> _Right);
new Microsoft.VisualC.StlClr.GenericPair<'TValue1, 'TValue2> : Microsoft.VisualC.StlClr.GenericPair<'TValue1, 'TValue2> -> Microsoft.VisualC.StlClr.GenericPair<'TValue1, 'TValue2>
Public Sub New (_Right As GenericPair(Of TValue1, TValue2))

Parameters

_Right
GenericPair<TValue1,TValue2>

The GenericPair<TValue1,TValue2> object to be copied into the new GenericPair<TValue1,TValue2> object.

Applies to

GenericPair<TValue1,TValue2>(KeyValuePair<TValue1,TValue2>)

Constructs a new GenericPair<TValue1,TValue2> object from an existing KeyValuePair<TKey,TValue> object.

public:
 GenericPair(System::Collections::Generic::KeyValuePair<TValue1, TValue2> % _Right);
public GenericPair (ref System.Collections.Generic.KeyValuePair<TValue1,TValue2> _Right);
new Microsoft.VisualC.StlClr.GenericPair<'TValue1, 'TValue2> : KeyValuePair -> Microsoft.VisualC.StlClr.GenericPair<'TValue1, 'TValue2>
Public Sub New (ByRef _Right As KeyValuePair(Of TValue1, TValue2))

Parameters

_Right
KeyValuePair<TValue1,TValue2>

The KeyValuePair<TKey,TValue> object to be copied into the new GenericPair<TValue1,TValue2> object.

Remarks

For more information, see pair::pair (STL/CLR).

Applies to

GenericPair<TValue1,TValue2>(TValue1)

Constructs a new GenericPair<TValue1,TValue2> object and assigns its first value to the specified value.

public:
 GenericPair(TValue1 _Val1);
public GenericPair (TValue1 _Val1);
new Microsoft.VisualC.StlClr.GenericPair<'TValue1, 'TValue2> : 'TValue1 -> Microsoft.VisualC.StlClr.GenericPair<'TValue1, 'TValue2>
Public Sub New (_Val1 As TValue1)

Parameters

_Val1
TValue1

The value to store in first. The second value is assigned the default value for its type.

Remarks

For more information, see pair::pair (STL/CLR).

Applies to

GenericPair<TValue1,TValue2>(TValue1, TValue2)

Constructs a new GenericPair<TValue1,TValue2> object with the two values specified.

public:
 GenericPair(TValue1 _Val1, TValue2 _Val2);
public GenericPair (TValue1 _Val1, TValue2 _Val2);
new Microsoft.VisualC.StlClr.GenericPair<'TValue1, 'TValue2> : 'TValue1 * 'TValue2 -> Microsoft.VisualC.StlClr.GenericPair<'TValue1, 'TValue2>
Public Sub New (_Val1 As TValue1, _Val2 As TValue2)

Parameters

_Val1
TValue1

The value to store in first.

_Val2
TValue2

The value to store in second.

Remarks

For more information, see pair::pair (STL/CLR).

Applies to