Name

StrongNameIdentityPermissionAttribute

Synopsis

public sealed class StrongNameIdentityPermissionAttribute : CodeAccessSecurityAttribute {
// Public Constructors
   public StrongNameIdentityPermissionAttribute(SecurityAction action);
// Public Instance Properties
   public string Name{set; get; }
   public string PublicKey{set; get; }
   public string Version{set; get; }
// Public Instance Methods
   public override IPermission CreatePermission(  );
// overrides SecurityAttribute
}

This attribute class provides declarative syntax support for the StrongNameIdentityPermission class. The Name, PublicKey, and Version attributes all take System.String objects containing the information that defines the strong name; the StrongNameIdentityPermissionAttribute converts these string values to the appropriate types.

Hierarchy

System.Object System.Attribute SecurityAttribute CodeAccessSecurityAttribute StrongNameIdentityPermissionAttribute

Valid On

Assembly, Class, Struct, Constructor, Method

Get Programming .NET Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.