Returns the collation properties used for a connection.
命名空間: Microsoft.ReportingServices.DataProcessing
組件: Microsoft.ReportingServices.Interfaces (in microsoft.reportingservices.interfaces.dll)
語法
'宣告
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey:="0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
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
[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey="0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
bool GetCollationProperties (
out string cultureName,
out bool caseSensitive,
out bool accentSensitive,
out bool kanatypeSensitive,
out bool widthSensitive
)
[StrongNameIdentityPermissionAttribute(SecurityAction::LinkDemand, PublicKey=L"0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
bool GetCollationProperties (
[OutAttribute] String^% cultureName,
[OutAttribute] bool% caseSensitive,
[OutAttribute] bool% accentSensitive,
[OutAttribute] bool% kanatypeSensitive,
[OutAttribute] bool% widthSensitive
)
/** @attribute StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey="0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8") */
boolean GetCollationProperties (
/** @attribute OutAttribute() */ /** @ref */ String cultureName,
/** @attribute OutAttribute() */ /** @ref */ boolean caseSensitive,
/** @attribute OutAttribute() */ /** @ref */ boolean accentSensitive,
/** @attribute OutAttribute() */ /** @ref */ boolean kanatypeSensitive,
/** @attribute OutAttribute() */ /** @ref */ boolean widthSensitive
)
JScript 不支援以傳址方式傳遞值類型的引數。
參數
- cultureName
The name of the culture to use for collation.
- caseSensitive
Indicates that the collation should be case sensitive.
- accentSensitive
Indicates that the collation should be accent sensitive.
- kanatypeSensitive
Indicates that the collation should be kana type sensitive.
- widthSensitive
Indicates that the collation should be width sensitive.
傳回值
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.
執行緒安全性
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
IDbCollationProperties Interface
IDbCollationProperties Members
Microsoft.ReportingServices.DataProcessing Namespace