次の方法で共有


IDbCollationProperties.GetCollationProperties メソッド

接続に使用する照合順序プロパティを返します。

名前空間:  Microsoft.ReportingServices.DataProcessing
アセンブリ:   Microsoft.ReportingServices.Interfaces (Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (Microsoft.ReportingServices.SharePoint.UI.WebParts.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%
    照合順序に使用するカルチャ名です。
  • caseSensitive
    型: System.Boolean%
    照合順序では大文字と小文字を区別する必要があることを示します。
  • accentSensitive
    型: System.Boolean%
    照合順序ではアクセントを区別する必要があることを示します。
  • kanatypeSensitive
    型: System.Boolean%
    照合順序ではかなを区別する必要があることを示します。
  • widthSensitive
    型: System.Boolean%
    照合順序では文字幅を区別する必要があることを示します。

戻り値

型: System.Boolean
現在の接続に対して照合順序プロパティを検出できた場合、true を返します。

説明

このメソッドは接続に使用する照合順序プロパティを返します。 これらのプロパティ値は、自動検出された照合順序プロパティを要求するレポートで使用できます。

データ処理拡張機能は、既定の照合順序プロパティを判断するため、データ ソースに対して 1 つ以上のクエリを実行する必要があります。 データ拡張機能からクエリを実行するには、トランザクションを考慮する必要があります。 一部のマネージ データ プロバイダーでは、コマンドが CreateCommand を使用して作成された場合でも、接続がトランザクション内にあると、コマンドのトランザクション プロパティを明示的に設定する必要があります。 これを行うためには、BeginTransaction が呼び出されるときにトランザクションをキャッシュし、Commit または Rollback でトランザクションを解放します。

関連項目

参照

IDbCollationProperties インターフェイス

Microsoft.ReportingServices.DataProcessing 名前空間