[ Team LiB ] Previous Section Next Section

StrongNameIdentityPermissionserializable

System.Security.Permissions (mscorlib.dll)sealed class
public sealed class StrongNameIdentityPermission : System.Security.CodeAccessPermission : IBuiltInPermission {
// Public Constructors
   public StrongNameIdentityPermission(PermissionState state);
   public StrongNameIdentityPermission(StrongNamePublicKeyBlob blob, string name, Version version);
// Public Instance Properties
   public string Name{set; get; }
   public StrongNamePublicKeyBlob PublicKey{set; get; }
   public Version Version{set; get; }
// Public Instance Methods
   public override IPermission Copy(  );        
// overrides CodeAccessPermission
   public override void FromXml(System.Security.SecurityElement e);
 // overrides CodeAccessPermission
   public override IPermission Intersect(System.Security.IPermission target);
 // overrides CodeAccessPermission
   public override bool IsSubsetOf(System.Security.IPermission target);
 // overrides CodeAccessPermission
   public override SecurityElement ToXml(  );   
// overrides CodeAccessPermission
   public override IPermission Union(System.Security.IPermission target);
 // overrides CodeAccessPermission
}

This identity permission represents the System.Security.Policy.StrongName evidence that an assembly or application domain presented to the runtime when it was loaded or created. The StrongNameIdentityPermission class enables code to make security decisions based on the strong name of an assembly, allowing code to ensure that only specific assemblies or versions of an assembly can access functionality.

The StrongNameIdentityPermission class provides a constructor that takes the name, version, and public key blob of a strong name. The Name, Version, and PublicKey properties of a StrongNameIdentityPermission object provide access to the strong-named data of an existing StrongNameIdentityPermission object. Name is a System.String containing the simple name of the assembly. Version uses a System.Version object to represent the four elements of a strong-named assembly version number; these are major, minor, build, and revision. The major and minor elements are mandatory, but build and revision are optional when specifying a strong-named assembly's version number. The PublicKey property uses a StrongNamePublicKeyBlob to contain the public key data of the strong name.

Hierarchy

System.Object System.Security.CodeAccessPermission(System.Security.IPermission, System.Security.ISecurityEncodable, System.Security.IStackWalk) StrongNameIdentityPermission(IBuiltInPermission)

    [ Team LiB ] Previous Section Next Section