Condividi tramite


Metodo IDbCollationProperties.GetCollationProperties

Returns the collation properties used for a connection.

Spazio dei nomi  Microsoft.ReportingServices.DataProcessing
Assembly:   Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

Sintassi

'Dichiarazione
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
'Utilizzo
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

Parametri

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

Valore restituito

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

Osservazioni

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.

Vedere anche

Riferimento

IDbCollationProperties Interfaccia

Spazio dei nomi Microsoft.ReportingServices.DataProcessing