OraclePermissionAttribute.KeyRestrictions 屬性

定義

取得或設定允許或不允許的連接字串參數。

public:
 property System::String ^ KeyRestrictions { System::String ^ get(); void set(System::String ^ value); };
public string KeyRestrictions { get; set; }
member this.KeyRestrictions : string with get, set
Public Property KeyRestrictions As String

屬性值

一個或多個允許或不允許的連接字串參數。

備註

連接字串參數是以格式 = 所識別。 也可以指定多個參數,只要以分號 (;) 將其分隔即可。 列出的 連接字串 參數可以識別為唯一允許的其他參數,或是不允許使用 KeyRestrictionBehavior 屬性的其他參數。

如果未指定任何索引鍵限制,且 KeyRestrictionBehavior 屬性設定為 AllowOnly,則不允許其他 連接字串 參數。

如果未指定任何索引鍵限制,且 KeyRestrictionBehavior 屬性設定為 PreventUsage,則會允許其他 連接字串 參數。 如果針對相同的 連接字串 設定多個規則,則會在許可權檢查期間選取更嚴格的規則。

適用於