OleDbPermissionAttribute クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
セキュリティ アクションをカスタム セキュリティ属性に関連付けます。
public ref class OleDbPermissionAttribute sealed : System::Data::Common::DBDataPermissionAttribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)]
[System.Serializable]
public sealed class OleDbPermissionAttribute : System.Data.Common.DBDataPermissionAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)>]
[<System.Serializable>]
type OleDbPermissionAttribute = class
inherit DBDataPermissionAttribute
Public NotInheritable Class OleDbPermissionAttribute
Inherits DBDataPermissionAttribute
- 継承
-
OleDbPermissionAttribute
- 属性
注釈
Caution
コード アクセス セキュリティ (CAS) は、.NET Framework と .NET のすべてのバージョンで非推奨になりました。 最近のバージョンの .NET では、CAS に関連する API が使用されている場合、CAS 注釈は使用されず、エラーが発生します。 開発者は、セキュリティ タスクを実行するための代替手段を求める必要があります。
このクラスは、.NET Framework Data Provider for OLE DB が部分信頼シナリオで有効になっている場合に、将来使用することを目的としています。 現在、.NET Framework for OLE DB Data Providerには FullTrust アクセス許可が必要です。 現在、 OleDbPermissionAttribute クラスを使用しても効果はありません。 詳細については、「 Code Access Security and ADO.NET」を参照してください。
コンストラクター
| 名前 | 説明 |
|---|---|
| OleDbPermissionAttribute(SecurityAction) |
OleDbPermissionAttribute クラスの新しいインスタンスを初期化します。 |
プロパティ
| 名前 | 説明 |
|---|---|
| Action |
セキュリティ アクションを取得または設定します。 (継承元 SecurityAttribute) |
| AllowBlankPassword |
空白のパスワードが許可されるかどうかを示す値を取得または設定します。 (継承元 DBDataPermissionAttribute) |
| ConnectionString |
許可される接続文字列を取得または設定します。 (継承元 DBDataPermissionAttribute) |
| KeyRestrictionBehavior |
KeyRestrictions プロパティによって識別される接続文字列パラメーターの一覧が、許可される唯一の接続文字列 パラメーターであるかどうかを示します。 (継承元 DBDataPermissionAttribute) |
| KeyRestrictions |
許可または禁止されている接続文字列パラメーターを取得または設定します。 (継承元 DBDataPermissionAttribute) |
| Provider |
古い.
サポートされているプロバイダーの一覧を含むコンマ区切りの文字列を取得または設定します。 |
| TypeId |
派生クラスで実装されている場合は、この Attributeの一意の識別子を取得します。 (継承元 Attribute) |
| Unrestricted |
属性によって保護されているリソースに対する完全な (無制限の) アクセス許可が宣言されているかどうかを示す値を取得または設定します。 (継承元 SecurityAttribute) |
メソッド
| 名前 | 説明 |
|---|---|
| CreatePermission() |
属性プロパティに従って構成された OleDbPermission オブジェクトを返します。 |
| Equals(Object) |
このインスタンスが指定したオブジェクトと等しいかどうかを示す値を返します。 (継承元 Attribute) |
| GetHashCode() |
このインスタンスのハッシュ コードを返します。 (継承元 Attribute) |
| GetType() |
現在のインスタンスの Type を取得します。 (継承元 Object) |
| IsDefaultAttribute() |
派生クラスでオーバーライドされた場合、このインスタンスの値が派生クラスの既定値であるかどうかを示します。 (継承元 Attribute) |
| Match(Object) |
派生クラスでオーバーライドされた場合、このインスタンスが指定したオブジェクトと等しいかどうかを示す値を返します。 (継承元 Attribute) |
| MemberwiseClone() |
現在の Objectの簡易コピーを作成します。 (継承元 Object) |
| ShouldSerializeConnectionString() |
属性が接続文字列をシリアル化する必要があるかどうかを識別します。 (継承元 DBDataPermissionAttribute) |
| ShouldSerializeKeyRestrictions() |
属性がキー制限のセットをシリアル化する必要があるかどうかを識別します。 (継承元 DBDataPermissionAttribute) |
| ToString() |
現在のオブジェクトを表す文字列を返します。 (継承元 Object) |
明示的なインターフェイスの実装
| 名前 | 説明 |
|---|---|
| _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) |
一連の名前を対応する一連のディスパッチ識別子に割り当てます。 (継承元 Attribute) |
| _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) |
インターフェイスの型情報を取得するために使用できるオブジェクトの型情報を取得します。 (継承元 Attribute) |
| _Attribute.GetTypeInfoCount(UInt32) |
オブジェクトが提供する型情報インターフェイスの数 (0 または 1) を取得します。 (継承元 Attribute) |
| _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) |
オブジェクトによって公開されるプロパティとメソッドへのアクセスを提供します。 (継承元 Attribute) |