Gemstone Common Library
Show/Hide TOC

# BitExtensionsCheckBits(Int64, Int64) Method

Determines if specified bits are set.

## Definition

Namespace: Gemstone.BitExtensions
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.159 -- Release Build+a612c25bc0e1c87e5766544ec4650d2ebcfddcf4
C#
View Source Request Example

    public static bool CheckBits(
    	this long source,
    	long bits
    )

VB
View Source Request Example

    <ExtensionAttribute>
    Public Shared Function CheckBits (
    	source As Long,
    	bits As Long
    ) As Boolean

C++
View Source Request Example

    public:
    [ExtensionAttribute]
    static bool CheckBits(
    	long long source,
    	long long bits
    )

JavaScript
View Source Request Example

    Gemstone.BitExtensions.BitExtensions.CheckBits = function(source, bits);

#### Parameters

source Int64
  Value source.
bits Int64
  Bit-mask of the bits to check.

#### Return Value

Boolean
true if specified bits are set in source value; otherwise false.

#### Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Int64. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

## See Also

#### Reference

BitExtensions Class
CheckBits Overload
Gemstone.BitExtensions Namespace