SqlFunctions.Ascii(String) Method

Definition

Returns the ASCII code value of the left-most character of a character expression.

[System.Data.Entity.DbFunction("SqlServer", "ASCII")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId="Ascii")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> Ascii (string arg);
static member Ascii : string -> Nullable<int>
Public Shared Function Ascii (arg As String) As Nullable(Of Integer)

Parameters

arg
String

A valid string.

Returns

The ASCII code of the first character in the input string.

Attributes

Applies to