SqlClientPermissionAttribute 类

定义

将某安全操作与自定义安全特性相关联。

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.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)>]
[<System.Serializable>]
type SqlClientPermissionAttribute = class
    inherit DBDataPermissionAttribute
Public NotInheritable Class SqlClientPermissionAttribute
Inherits DBDataPermissionAttribute
继承
SqlClientPermissionAttribute
属性

构造函数

SqlClientPermissionAttribute(SecurityAction)

初始化 SqlClientPermissionAttribute 类的新实例。

方法

CreatePermission()

返回一个 SqlClientPermission 对象,该对象是根据特性属性配置的。

适用于