IDbCollationProperties.GetCollationProperties 方法

定义

返回用于连接的排序规则属性。

public:
 bool GetCollationProperties([Runtime::InteropServices::Out] System::String ^ % cultureName, [Runtime::InteropServices::Out] bool % caseSensitive, [Runtime::InteropServices::Out] bool % accentSensitive, [Runtime::InteropServices::Out] bool % kanatypeSensitive, [Runtime::InteropServices::Out] bool % widthSensitive);
public bool GetCollationProperties (out string cultureName, out bool caseSensitive, out bool accentSensitive, out bool kanatypeSensitive, out bool widthSensitive);
abstract member GetCollationProperties : string * bool * bool * bool * bool -> bool
Public Function GetCollationProperties (ByRef cultureName As String, ByRef caseSensitive As Boolean, ByRef accentSensitive As Boolean, ByRef kanatypeSensitive As Boolean, ByRef widthSensitive As Boolean) As Boolean

参数

cultureName
String

要用于排序规则的区域性的名称。

caseSensitive
Boolean

指示排序规则应该区分大小写。

accentSensitive
Boolean

指示排序规则应该区分重音。

kanatypeSensitive
Boolean

指示排序规则应该区分假名类型。

widthSensitive
Boolean

指示排序规则应该区分全半角。

返回

Boolean

如果可检测当前连接的排序规则属性,则返回 true。

注解

此方法返回用于连接的排序规则属性。 这些属性值可用于请求自动检测排序规则属性的报表。

数据处理扩展插件需要对数据源执行一个或多个查询,以便确定默认排序规则属性。 为了从数据扩展插件中执行查询,需要考虑事务。 对于某些托管的数据访问接口,如果连接在事务中,则必须显式设置命令的 transaction 属性,即使该命令是使用创建的 CreateCommand 。 为此,您必须在调用时缓存事务 BeginTransaction ,并在或上释放事务 Commit Rollback

适用于