SqlFunctions.Checksum Method (Byte[], Byte[], Byte[])

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Returns the checksum value computed over the input arguments.

Namespace:  System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

Syntax

'Declaration
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "arg1")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "arg3")> _
<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId := "arg2")> _
<DbFunctionAttribute("SqlServer", "CHECKSUM")> _
Public Shared Function Checksum ( _
    arg1 As Byte(), _
    arg2 As Byte(), _
    arg3 As Byte() _
) As Nullable(Of Integer)
'Usage
Dim arg1 As Byte()
Dim arg2 As Byte()
Dim arg3 As Byte()
Dim returnValue As Nullable(Of Integer)

returnValue = SqlFunctions.Checksum(arg1, _
    arg2, arg3)
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg1")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg3")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg2")]
[DbFunctionAttribute("SqlServer", "CHECKSUM")]
public static Nullable<int> Checksum(
    byte[] arg1,
    byte[] arg2,
    byte[] arg3
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"arg1")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"arg3")]
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA1801:ReviewUnusedParameters", MessageId = L"arg2")]
[DbFunctionAttribute(L"SqlServer", L"CHECKSUM")]
public:
static Nullable<int> Checksum(
    array<unsigned char>^ arg1, 
    array<unsigned char>^ arg2, 
    array<unsigned char>^ arg3
)
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg1")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg3")>]
[<SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg2")>]
[<DbFunctionAttribute("SqlServer", "CHECKSUM")>]
static member Checksum : 
        arg1:byte[] * 
        arg2:byte[] * 
        arg3:byte[] -> Nullable<int> 
public static function Checksum(
    arg1 : byte[], 
    arg2 : byte[], 
    arg3 : byte[]
) : Nullable<int>

Parameters

  • arg1
    Type: System.Byte[]
    The character array for which the checksum is calculated.
  • arg2
    Type: System.Byte[]
    The character array for which the checksum is calculated.
  • arg3
    Type: System.Byte[]
    The character array for which the checksum is calculated.

Return Value

Type: System.Nullable<Int32>
The checksum computed over the input values.

See Also

Reference

SqlFunctions Class

Checksum Overload

System.Data.Entity.SqlServer Namespace