Interlocked.And Methode

Definition

Überlädt

And(Int32, Int32)

Wendet „and“ bitweise auf zwei 32-Bit-Ganzzahlen mit Vorzeichen an und ersetzt die erste Ganzzahl durch das Ergebnis als atomare Operation.

And(Int64, Int64)

Wendet „and“ bitweise auf zwei 64-Bit-Ganzzahlen mit Vorzeichen an und ersetzt die erste Ganzzahl durch das Ergebnis als atomare Operation.

And(UInt32, UInt32)

Wendet „and“ bitweise auf zwei 32-Bit-Ganzzahlen ohne Vorzeichen an und ersetzt die erste Ganzzahl durch das Ergebnis als atomare Operation.

And(UInt64, UInt64)

Wendet „and“ bitweise auf zwei 64-Bit-Ganzzahlen ohne Vorzeichen an und ersetzt die erste Ganzzahl durch das Ergebnis als atomare Operation.

And(Int32, Int32)

Wendet „and“ bitweise auf zwei 32-Bit-Ganzzahlen mit Vorzeichen an und ersetzt die erste Ganzzahl durch das Ergebnis als atomare 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 mit dem ersten zu kombinierenden Wert. Das Ergebnis wird in location1 gespeichert.

value
Int32

Der Wert, der an location1 mit der Ganzzahl kombiniert werden soll.

Gibt zurück

Int32

Der ursprüngliche Wert in location1.

Ausnahmen

Die Adresse von location1 ist ein null-Zeiger.

Gilt für

And(Int64, Int64)

Wendet „and“ bitweise auf zwei 64-Bit-Ganzzahlen mit Vorzeichen an und ersetzt die erste Ganzzahl durch das Ergebnis als atomare 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 mit dem ersten zu kombinierenden Wert. Das Ergebnis wird in location1 gespeichert.

value
Int64

Der Wert, der an location1 mit der Ganzzahl kombiniert werden soll.

Gibt zurück

Int64

Der ursprüngliche Wert in location1.

Ausnahmen

Die Adresse von location1 ist ein null-Zeiger.

Gilt für

And(UInt32, UInt32)

Wichtig

Diese API ist nicht CLS-kompatibel.

Wendet „and“ bitweise auf zwei 32-Bit-Ganzzahlen ohne Vorzeichen an und ersetzt die erste Ganzzahl durch das Ergebnis als atomare 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 mit dem ersten zu kombinierenden Wert. Das Ergebnis wird in location1 gespeichert.

value
UInt32

Der Wert, der an location1 mit der Ganzzahl kombiniert werden soll.

Gibt zurück

UInt32

Der ursprüngliche Wert in location1.

Attribute

Ausnahmen

Die Adresse von location1 ist ein null-Zeiger.

Gilt für

And(UInt64, UInt64)

Wichtig

Diese API ist nicht CLS-kompatibel.

Wendet „and“ bitweise auf zwei 64-Bit-Ganzzahlen ohne Vorzeichen an und ersetzt die erste Ganzzahl durch das Ergebnis als atomare 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 mit dem ersten zu kombinierenden Wert. Das Ergebnis wird in location1 gespeichert.

value
UInt64

Der Wert, der an location1 mit der Ganzzahl kombiniert werden soll.

Gibt zurück

UInt64

Der ursprüngliche Wert in location1.

Attribute

Ausnahmen

Die Adresse von location1 ist ein null-Zeiger.

Gilt für