SqlClientPermissionAttribute クラス
この記事の内容
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
Code Access Security is not supported or honored by the runtime.
セキュリティ アクションをカスタム セキュリティ属性に関連付けます。
public ref class SqlClientPermissionAttribute 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.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class SqlClientPermissionAttribute : 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 SqlClientPermissionAttribute : 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)]
public sealed class SqlClientPermissionAttribute : 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.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type SqlClientPermissionAttribute = class
inherit 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 SqlClientPermissionAttribute = class
inherit DBDataPermissionAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Struct, AllowMultiple=true, Inherited=false)>]
type SqlClientPermissionAttribute = class
inherit DBDataPermissionAttribute
Public NotInheritable Class SqlClientPermissionAttribute
Inherits DBDataPermissionAttribute
- 継承
-
SqlClientPermissionAttribute
- 属性
注意事項
コード アクセス セキュリティ (CAS) は、.NET Framework と .NET のすべてのバージョンで非推奨になりました。 最近のバージョンの .NET では、CAS 関連の API が使われている場合、CAS の注釈は使われず、エラーが発生します。 開発者は、代わりの手段を見つけてセキュリティ タスクを実現する必要があります。
Sql |
古い.
SqlClientPermissionAttribute クラスの新しいインスタンスを初期化します。 |
Action |
古い.
セキュリティ アクションを取得または設定します。 (継承元 SecurityAttribute) |
Allow |
古い.
空白のパスワードを許可するかどうかを示す値を取得または設定します。 (継承元 DBDataPermissionAttribute) |
Connection |
古い.
許可された接続文字列を取得または設定します。 (継承元 DBDataPermissionAttribute) |
Key |
古い.
KeyRestrictions プロパティで指定された接続文字列パラメーターのリストだけが、接続文字列パラメーターとして許可されるかどうかを指定します。 (継承元 DBDataPermissionAttribute) |
Key |
古い.
許可されている、または許可されていない接続文字列を取得または設定します。 (継承元 DBDataPermissionAttribute) |
Type |
古い.
派生クラスで実装されると、この Attribute の一意の識別子を取得します。 (継承元 Attribute) |
Unrestricted |
古い.
属性によって保護されているリソースに対して完全な (無制限の) アクセス許可が宣言されているかどうかを示す値を取得または設定します。 (継承元 SecurityAttribute) |
Create |
古い.
属性プロパティに従って設定された SqlClientPermission オブジェクトを返します。 |
Equals(Object) |
古い.
このインスタンスが、指定されたオブジェクトと等価であるかどうかを示す値を返します。 (継承元 Attribute) |
Get |
古い.
このインスタンスのハッシュ コードを返します。 (継承元 Attribute) |
Get |
古い.
現在のインスタンスの Type を取得します。 (継承元 Object) |
Is |
古い.
派生クラスでオーバーライドされるとき、このインスタンスの値が派生クラスの既定値であるかどうかを示します。 (継承元 Attribute) |
Match(Object) |
古い.
派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (継承元 Attribute) |
Memberwise |
古い.
現在の Object の簡易コピーを作成します。 (継承元 Object) |
Should |
古い.
属性が接続文字列をシリアル化する必要があるかどうかを指定します。 (継承元 DBDataPermissionAttribute) |
Should |
古い.
属性がキーの制限のセットをシリアル化する必要があるかどうかを指定します。 (継承元 DBDataPermissionAttribute) |
To |
古い.
現在のオブジェクトを表す文字列を返します。 (継承元 Object) |
_Attribute. |
古い.
一連の名前を対応する一連のディスパッチ識別子に割り当てます。 (継承元 Attribute) |
_Attribute. |
古い.
オブジェクトの型情報を取得します。この情報はインターフェイスの型情報の取得に使用できます。 (継承元 Attribute) |
_Attribute. |
古い.
オブジェクトが提供する型情報インターフェイスの数 (0 または 1) を取得します。 (継承元 Attribute) |
_Attribute. |
古い.
オブジェクトによって公開されたプロパティおよびメソッドへのアクセスを提供します。 (継承元 Attribute) |
製品 | バージョン (廃止) |
---|---|
.NET | (8 (package-provided), 9 (package-provided)) |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1 (5, 6, 7, 8, 9) |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。