GenericPair<TValue1,TValue2> Konstruktorer

Definition

Konstruerar ett nytt GenericPair<TValue1,TValue2> objekt.

Överlagringar

Name Description
GenericPair<TValue1,TValue2>()

Konstruerar ett nytt GenericPair<TValue1,TValue2> objekt med standardvärden för first och second.

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

Konstruerar ett nytt GenericPair<TValue1,TValue2> objekt från ett befintligt GenericPair<TValue1,TValue2> objekt.

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

Konstruerar ett nytt GenericPair<TValue1,TValue2> objekt från ett befintligt KeyValuePair<TKey,TValue> objekt.

GenericPair<TValue1,TValue2>(TValue1)

Konstruerar ett nytt GenericPair<TValue1,TValue2> objekt och tilldelar sitt första värde till det angivna värdet.

GenericPair<TValue1,TValue2>(TValue1, TValue2)

Skapar ett nytt GenericPair<TValue1,TValue2> objekt med de två angivna värdena.

Kommentarer

Mer information finns i pair::p air (STL/CLR).

GenericPair<TValue1,TValue2>()

Konstruerar ett nytt GenericPair<TValue1,TValue2> objekt med standardvärden för first och second.

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

Kommentarer

Mer information finns i pair::p air (STL/CLR).

Gäller för

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

Konstruerar ett nytt GenericPair<TValue1,TValue2> objekt från ett befintligt GenericPair<TValue1,TValue2> objekt.

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))

Parametrar

_Right
GenericPair<TValue1,TValue2>

Objektet GenericPair<TValue1,TValue2> som ska kopieras till det nya GenericPair<TValue1,TValue2> objektet.

Gäller för

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

Konstruerar ett nytt GenericPair<TValue1,TValue2> objekt från ett befintligt KeyValuePair<TKey,TValue> objekt.

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))

Parametrar

_Right
KeyValuePair<TValue1,TValue2>

Objektet KeyValuePair<TKey,TValue> som ska kopieras till det nya GenericPair<TValue1,TValue2> objektet.

Kommentarer

Mer information finns i pair::p air (STL/CLR).

Gäller för

GenericPair<TValue1,TValue2>(TValue1)

Konstruerar ett nytt GenericPair<TValue1,TValue2> objekt och tilldelar sitt första värde till det angivna värdet.

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)

Parametrar

_Val1
TValue1

Värdet som ska lagras i first. Värdet second tilldelas standardvärdet för dess typ.

Kommentarer

Mer information finns i pair::p air (STL/CLR).

Gäller för

GenericPair<TValue1,TValue2>(TValue1, TValue2)

Skapar ett nytt GenericPair<TValue1,TValue2> objekt med de två angivna värdena.

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)

Parametrar

_Val1
TValue1

Värdet som ska lagras i first.

_Val2
TValue2

Värdet som ska lagras i second.

Kommentarer

Mer information finns i pair::p air (STL/CLR).

Gäller för