SqlFunctions.Ascii Method (String)

 

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

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

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
[DbFunctionAttribute("SqlServer", "ASCII")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", 
	MessageId = "Ascii")]
public static Nullable<int> Ascii(
	string arg
)

Parameters

arg
Type: System.String

A valid string.

Return Value

Type: System.Nullable<Int32>

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