SqlFunctions.Unicode(String) Method

Definition

Returns the integer value, as defined by the Unicode standard, for the first character of the input expression.

C#
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "UNICODE")]
public static int? Unicode(string arg);

Parameters

arg
String

A valid string.

Returns

The character code for the first character in the input string.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see UNICODE (Transact-SQL).

Applies to

Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1