Interlocked.And Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Surcharges
| Nom | Description |
|---|---|
| And(Int32, Int32) |
Au niveau du bit, deux entiers signés 32 bits et remplacent le premier entier par le résultat, en tant qu’opération atomique. |
| And(Int64, Int64) |
Au niveau du bit , deux entiers signés 64 bits et remplace le premier entier par le résultat, sous la forme d’une opération atomique. |
| And(UInt32, UInt32) |
Au niveau du bit , deux entiers non signés 32 bits et remplace le premier entier par le résultat, sous la forme d’une opération atomique. |
| And(UInt64, UInt64) |
Au niveau du bit , deux entiers non signés 64 bits et remplace le premier entier par le résultat, sous la forme d’une opération atomique. |
| And<T>(T, T) |
And(Int32, Int32)
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
Au niveau du bit, deux entiers signés 32 bits et remplacent le premier entier par le résultat, en tant qu’opération atomique.
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
Paramètres
- location1
- Int32
Variable contenant la première valeur à combiner. Le résultat est stocké dans location1.
- value
- Int32
Valeur à combiner avec l’entier à location1.
Retours
Valeur d’origine en location1.
Exceptions
L’adresse est location1 un null pointeur.
S’applique à
And(Int64, Int64)
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
Au niveau du bit , deux entiers signés 64 bits et remplace le premier entier par le résultat, sous la forme d’une opération atomique.
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
Paramètres
- location1
- Int64
Variable contenant la première valeur à combiner. Le résultat est stocké dans location1.
- value
- Int64
Valeur à combiner avec l’entier à location1.
Retours
Valeur d’origine en location1.
Exceptions
L’adresse est location1 un null pointeur.
S’applique à
And(UInt32, UInt32)
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
Important
Cette API n’est pas conforme CLS.
Au niveau du bit , deux entiers non signés 32 bits et remplace le premier entier par le résultat, sous la forme d’une opération atomique.
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
Paramètres
- location1
- UInt32
Variable contenant la première valeur à combiner. Le résultat est stocké dans location1.
- value
- UInt32
Valeur à combiner avec l’entier à location1.
Retours
Valeur d’origine en location1.
- Attributs
Exceptions
L’adresse est location1 un null pointeur.
S’applique à
And(UInt64, UInt64)
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
- Source:
- Interlocked.cs
Important
Cette API n’est pas conforme CLS.
Au niveau du bit , deux entiers non signés 64 bits et remplace le premier entier par le résultat, sous la forme d’une opération atomique.
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
Paramètres
- location1
- UInt64
Variable contenant la première valeur à combiner. Le résultat est stocké dans location1.
- value
- UInt64
Valeur à combiner avec l’entier à location1.
Retours
Valeur d’origine en location1.
- Attributs
Exceptions
L’adresse est location1 un null pointeur.
S’applique à
And<T>(T, T)
- Source:
- 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
Paramètres de type
- T
Paramètres
- location1
- T
- value
- T