Editar

Compartilhar via


Interlocked.Or Method

Definition

Overloads

Or(Int32, Int32)

Bitwise "ors" two 32-bit signed integers and replaces the first integer with the result, as an atomic operation.

Or(Int64, Int64)

Bitwise "ors" two 64-bit signed integers and replaces the first integer with the result, as an atomic operation.

Or(UInt32, UInt32)

Bitwise "ors" two 32-bit unsigned integers and replaces the first integer with the result, as an atomic operation.

Or(UInt64, UInt64)

Bitwise "ors" two 64-bit unsigned integers and replaces the first integer with the result, as an atomic operation.

Or(Int32, Int32)

Source:
Interlocked.cs
Source:
Interlocked.cs
Source:
Interlocked.cs

Bitwise "ors" two 32-bit signed integers and replaces the first integer with the result, as an atomic operation.

public:
 static int Or(int % location1, int value);
public static int Or (ref int location1, int value);
static member Or : int * int -> int
Public Shared Function Or (ByRef location1 As Integer, value As Integer) As Integer

Parameters

location1
Int32

A variable containing the first value to be combined. The result is stored in location1.

value
Int32

The value to be combined with the integer at location1.

Returns

The original value in location1.

Exceptions

The address of location1 is a null pointer.

Applies to

Or(Int64, Int64)

Source:
Interlocked.cs
Source:
Interlocked.cs
Source:
Interlocked.cs

Bitwise "ors" two 64-bit signed integers and replaces the first integer with the result, as an atomic operation.

public:
 static long Or(long % location1, long value);
public static long Or (ref long location1, long value);
static member Or : int64 * int64 -> int64
Public Shared Function Or (ByRef location1 As Long, value As Long) As Long

Parameters

location1
Int64

A variable containing the first value to be combined. The result is stored in location1.

value
Int64

The value to be combined with the integer at location1.

Returns

The original value in location1.

Exceptions

The address of location1 is a null pointer.

Applies to

Or(UInt32, UInt32)

Source:
Interlocked.cs
Source:
Interlocked.cs
Source:
Interlocked.cs

Important

This API is not CLS-compliant.

Bitwise "ors" two 32-bit unsigned integers and replaces the first integer with the result, as an atomic operation.

public:
 static System::UInt32 Or(System::UInt32 % location1, System::UInt32 value);
[System.CLSCompliant(false)]
public static uint Or (ref uint location1, uint value);
[<System.CLSCompliant(false)>]
static member Or : uint32 * uint32 -> uint32
Public Shared Function Or (ByRef location1 As UInteger, value As UInteger) As UInteger

Parameters

location1
UInt32

A variable containing the first value to be combined. The result is stored in location1.

value
UInt32

The value to be combined with the integer at location1.

Returns

The original value in location1.

Attributes

Exceptions

The address of location1 is a null pointer.

Applies to

Or(UInt64, UInt64)

Source:
Interlocked.cs
Source:
Interlocked.cs
Source:
Interlocked.cs

Important

This API is not CLS-compliant.

Bitwise "ors" two 64-bit unsigned integers and replaces the first integer with the result, as an atomic operation.

public:
 static System::UInt64 Or(System::UInt64 % location1, System::UInt64 value);
[System.CLSCompliant(false)]
public static ulong Or (ref ulong location1, ulong value);
[<System.CLSCompliant(false)>]
static member Or : uint64 * uint64 -> uint64
Public Shared Function Or (ByRef location1 As ULong, value As ULong) As ULong

Parameters

location1
UInt64

A variable containing the first value to be combined. The result is stored in location1.

value
UInt64

The value to be combined with the integer at location1.

Returns

The original value in location1.

Attributes

Exceptions

The address of location1 is a null pointer.

Applies to