NamedPermissionSet | serializable |
System.Security (mscorlib.dll) | sealed class |
public sealed class NamedPermissionSet : PermissionSet {
// Public Constructors
public NamedPermissionSet(NamedPermissionSet permSet);
public NamedPermissionSet(string name);
public NamedPermissionSet(string name, PermissionSet permSet);
public NamedPermissionSet(string name, System.Security.Permissions.PermissionState state);
// Public Instance Properties
public string Description{set; get; }
public string Name{set; get; }
// Public Instance Methods
public NamedPermissionSet Copy(string name);
public override PermissionSet Copy( );
// overrides PermissionSet
public override void FromXml(SecurityElement et);
// overrides PermissionSet
public override SecurityElement ToXml( );
// overrides PermissionSet
}
This subclass of PermissionSet allows the
permission set to have a name and description assigned to it.
NamedPermissionSet is used predominantly when
working programmatically with security policy.
Hierarchy
System.Object
PermissionSet(ISecurityEncodable,
System.Collections.ICollection,
System.Collections.IEnumerable,
IStackWalk,
System.Runtime.Serialization.IDeserializationCallback)
NamedPermissionSet
Returned By
System.Security.Policy.PolicyLevel.{ChangeNamedPermissionSet(
), GetNamedPermissionSet( ),
RemoveNamedPermissionSet( )}
Passed To
System.Security.Policy.PolicyLevel.{AddNamedPermissionSet(
), RemoveNamedPermissionSet( )}
|