Interlocked.And Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| And(Int32, Int32) |
Bitweise "ands" zwei 32-Bit-Ganzzahlen und ersetzt die erste ganze Zahl durch das Ergebnis als atomische Operation. |
| And(Int64, Int64) |
Bitweise "ands" zwei 64-Bit-Ganzzahlen mit Vorzeichen und ersetzt die erste ganze Zahl durch das Ergebnis als atomische Operation. |
| And(UInt32, UInt32) |
Bitweise "ands" zwei 32-Bit-ganzzahlen ohne Vorzeichen und ersetzt die erste ganze Zahl durch das Ergebnis als atomische Operation. |
| And(UInt64, UInt64) |
Bitweise "ands" zwei 64-Bit-ganzzahlen ohne Vorzeichen und ersetzt die erste ganze Zahl durch das Ergebnis als atomische Operation. |
| And<T>(T, T) |
And(Int32, Int32)
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
Bitweise "ands" zwei 32-Bit-Ganzzahlen und ersetzt die erste ganze Zahl durch das Ergebnis als atomische Operation.
public:
static int And(int % location1, int value);
public static int And(ref int location1, int value);
static member And : int * int -> int
Public Shared Function And (ByRef location1 As Integer, value As Integer) As Integer
Parameter
- location1
- Int32
Eine Variable, die den ersten zu kombinierenden Wert enthält. Das Ergebnis wird gespeichert in location1.
- value
- Int32
Der Wert, der mit der ganzen Zahl kombiniert werden soll.location1
Gibt zurück
Der ursprüngliche Wert in location1.
Ausnahmen
Die Adresse von location1 ist ein null Zeiger.
Gilt für:
And(Int64, Int64)
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
Bitweise "ands" zwei 64-Bit-Ganzzahlen mit Vorzeichen und ersetzt die erste ganze Zahl durch das Ergebnis als atomische Operation.
public:
static long And(long % location1, long value);
public static long And(ref long location1, long value);
static member And : int64 * int64 -> int64
Public Shared Function And (ByRef location1 As Long, value As Long) As Long
Parameter
- location1
- Int64
Eine Variable, die den ersten zu kombinierenden Wert enthält. Das Ergebnis wird gespeichert in location1.
- value
- Int64
Der Wert, der mit der ganzen Zahl kombiniert werden soll.location1
Gibt zurück
Der ursprüngliche Wert in location1.
Ausnahmen
Die Adresse von location1 ist ein null Zeiger.
Gilt für:
And(UInt32, UInt32)
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
Wichtig
Diese API ist nicht CLS-kompatibel.
Bitweise "ands" zwei 32-Bit-ganzzahlen ohne Vorzeichen und ersetzt die erste ganze Zahl durch das Ergebnis als atomische Operation.
public:
static System::UInt32 And(System::UInt32 % location1, System::UInt32 value);
[System.CLSCompliant(false)]
public static uint And(ref uint location1, uint value);
[<System.CLSCompliant(false)>]
static member And : uint32 * uint32 -> uint32
Public Shared Function And (ByRef location1 As UInteger, value As UInteger) As UInteger
Parameter
- location1
- UInt32
Eine Variable, die den ersten zu kombinierenden Wert enthält. Das Ergebnis wird gespeichert in location1.
- value
- UInt32
Der Wert, der mit der ganzen Zahl kombiniert werden soll.location1
Gibt zurück
Der ursprüngliche Wert in location1.
- Attribute
Ausnahmen
Die Adresse von location1 ist ein null Zeiger.
Gilt für:
And(UInt64, UInt64)
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
- Quelle:
- Interlocked.cs
Wichtig
Diese API ist nicht CLS-kompatibel.
Bitweise "ands" zwei 64-Bit-ganzzahlen ohne Vorzeichen und ersetzt die erste ganze Zahl durch das Ergebnis als atomische Operation.
public:
static System::UInt64 And(System::UInt64 % location1, System::UInt64 value);
[System.CLSCompliant(false)]
public static ulong And(ref ulong location1, ulong value);
[<System.CLSCompliant(false)>]
static member And : uint64 * uint64 -> uint64
Public Shared Function And (ByRef location1 As ULong, value As ULong) As ULong
Parameter
- location1
- UInt64
Eine Variable, die den ersten zu kombinierenden Wert enthält. Das Ergebnis wird gespeichert in location1.
- value
- UInt64
Der Wert, der mit der ganzen Zahl kombiniert werden soll.location1
Gibt zurück
Der ursprüngliche Wert in location1.
- Attribute
Ausnahmen
Die Adresse von location1 ist ein null Zeiger.
Gilt für:
And<T>(T, T)
- Quelle:
- Interlocked.cs
public:
generic <typename T>
where T : value class static T And(T % location1, T value);
public static T And<T>(ref T location1, T value) where T : struct;
static member And : 'T * 'T -> 'T (requires 'T : struct)
Public Shared Function And(Of T As Structure) (ByRef location1 As T, value As T) As T
Typparameter
- T
Parameter
- location1
- T
- value
- T