PrincipalPermissionAttribute

PrincipalPermissionAttributeserializable

System.Security.Permissions (mscorlib.dll)sealed class
public sealed class PrincipalPermissionAttribute : CodeAccessSecurityAttribute { // Public Constructors    public PrincipalPermissionAttribute(SecurityAction action); // Public Instance Properties    public bool Authenticated{set; get; }    public string Name{set; get; }    public string Role{set; get; } // Public Instance Methods    public override IPermission CreatePermission(  ); // overrides SecurityAttribute }

The PrincipalPermissionAttribute class provides limited declarative syntax support for the PrincipalPermission class. The PrincipalPermissionAttribute class only supports declarative security demands and does not allow code to make declarative stack walk overrides or permission requests. The Name, Role, and Authenticated properties provide the mechanism through which to specify the conditions that the current thread's principal must meet to pass a security demand.

Hierarchy

System.Object System.Attribute SecurityAttribute CodeAccessSecurityAttribute PrincipalPermissionAttribute

Valid On

Class, Method



Programming. NET Security
Programming .Net Security
ISBN: 0596004427
EAN: 2147483647
Year: 2005
Pages: 346

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net