IDbCollationProperties.GetCollationProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回用於連接的定序屬性。
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
表示定序應該區分全半形。
傳回
如果可針對目前連接偵測定序屬性,則傳回 true。
備註
這個方法會傳回用於連接的定序屬性。 這些屬性值可以在要求自動偵測定序屬性的報表中使用。
資料處理延伸模組必須針對資料來源執行一或多個查詢,才能判斷預設的定序屬性。 若要從資料延伸模組內執行查詢,必須將交易列入考慮。 針對某些 managed 資料提供者,如果連接在交易中,則必須明確設定命令的 transaction 屬性,即使是使用建立的命令也一樣 CreateCommand 。 若要這樣做,您必須在呼叫時快取交易 BeginTransaction ,並在或上釋放交易 Commit Rollback 。