IDbCollationProperties.GetCollationProperties 方法

Returns the collation properties used for a connection.

命名空间:  Microsoft.ReportingServices.DataProcessing
程序集:   Microsoft.ReportingServices.SharePoint.UI.WebParts(在 Microsoft.ReportingServices.SharePoint.UI.WebParts.dll 中)
  Microsoft.ReportingServices.Interfaces(在 Microsoft.ReportingServices.Interfaces.dll 中)

语法

声明
Function GetCollationProperties ( _
    <OutAttribute> ByRef cultureName As String, _
    <OutAttribute> ByRef caseSensitive As Boolean, _
    <OutAttribute> ByRef accentSensitive As Boolean, _
    <OutAttribute> ByRef kanatypeSensitive As Boolean, _
    <OutAttribute> ByRef widthSensitive As Boolean _
) As Boolean
用法
Dim instance As IDbCollationProperties
Dim cultureName As String
Dim caseSensitive As Boolean
Dim accentSensitive As Boolean
Dim kanatypeSensitive As Boolean
Dim widthSensitive As Boolean
Dim returnValue As Boolean

returnValue = instance.GetCollationProperties(cultureName, _
    caseSensitive, accentSensitive, _
    kanatypeSensitive, widthSensitive)
bool GetCollationProperties(
    out string cultureName,
    out bool caseSensitive,
    out bool accentSensitive,
    out bool kanatypeSensitive,
    out bool widthSensitive
)
bool GetCollationProperties(
    [OutAttribute] String^% cultureName, 
    [OutAttribute] bool% caseSensitive, 
    [OutAttribute] bool% accentSensitive, 
    [OutAttribute] bool% kanatypeSensitive, 
    [OutAttribute] bool% widthSensitive
)
abstract GetCollationProperties : 
        cultureName:string byref * 
        caseSensitive:bool byref * 
        accentSensitive:bool byref * 
        kanatypeSensitive:bool byref * 
        widthSensitive:bool byref -> bool 
function GetCollationProperties(
    cultureName : String, 
    caseSensitive : boolean, 
    accentSensitive : boolean, 
    kanatypeSensitive : boolean, 
    widthSensitive : boolean
) : boolean

参数

  • cultureName
    类型:System.String%
    The name of the culture to use for collation.
  • caseSensitive
    类型:System.Boolean%
    Indicates that the collation should be case sensitive.
  • accentSensitive
    类型:System.Boolean%
    Indicates that the collation should be accent sensitive.
  • kanatypeSensitive
    类型:System.Boolean%
    Indicates that the collation should be kana type sensitive.
  • widthSensitive
    类型:System.Boolean%
    Indicates that the collation should be width sensitive.

返回值

类型:System.Boolean
Returns true if the collation properties could be detected for the current connection.

注释

This method returns the collation properties used for a connection. These property values can be used in reports which request auto-detected collation properties.

A data processing extension needs to execute one or more queries against a data source in order to determine the default collation properties. In order to execute queries from within the data extension, transactions need to be taken into account. For some managed data providers, the transaction property on a command must be explicitly set if the connection is in a transaction, even if the command was created using CreateCommand. To do this, you must cache the transaction when BeginTransaction is called, and release the transaction on Commit or Rollback.