RegistryCodeGroup Class
System.Net.Security.CAS
Represents a code group that grants permissions based on registry values.
public sealed class RegistryCodeGroup : CodeGroup
Contents
Constructors
RegistryCodeGroup Constructor
public RegistryCodeGroup(
SecurityElement parent,
SecurityElement conditions
);
SecurityElement parent,
SecurityElement conditions
);
Initializes a new instance of the RegistryCodeGroup class.
RegistryCodeGroup Constructor
public RegistryCodeGroup(
string name,
PermissionSet permSet
);
string name,
PermissionSet permSet
);
Initializes a new instance of the RegistryCodeGroup class with the specified name and permission set.
Properties
| Name | Description |
|---|---|
| Name | Gets or sets the name of the code group. |
| PermissionSet | Gets or sets the permission set associated with this code group. |
Methods
Copy()
public override object Copy();
Creates and returns an identical copy of the current code group.
ParseXml(SecurityElement etp)
protected override CodeGroup ParseXml(SecurityElement etp);
Parses the specified XML element and restores the state of the code group.
TestMatch(Evidence evidence)
public override bool TestMatch(Evidence evidence);
Determines whether the specified evidence matches the criteria of the code group.
Requirements
| Assembly | Supported in |
|---|---|
| System.dll | .NET Framework 1.0, 2.0, 3.0, 3.5, 4.0 |