SqlFunctions.Unicode(String) 方法
定义
按照 Unicode 标准的定义,返回输入表达式的第一个字符的整数值。Returns the integer value, as defined by the Unicode standard, for the first character of the input expression.
public:
static Nullable<int> Unicode(System::String ^ arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "UNICODE")]
public static int? Unicode (string arg);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "UNICODE")>]
static member Unicode : string -> Nullable<int>
Public Shared Function Unicode (arg As String) As Nullable(Of Integer)
参数
- arg
- String
一个有效的字符串。A valid string.
返回
输入字符串中第一个字符的字符代码。The character code for the first character in the input string.
- 属性
注解
不能直接调用此函数。You cannot call this function directly. 此函数只能出现在 LINQ to Entities 查询中。This function can only appear within a LINQ to Entities query.
此函数已转换为数据库中的相应函数。This function is translated to a corresponding function in the database. 有关相应 SQL Server 函数的信息,请参阅 UNICODE (transact-sql) 。For information about the corresponding SQL Server function, see UNICODE (Transact-SQL).