This method of the RegistryPermission Class adds a rule that explicitly denies the specified access type to the registry keys or values specified by the pattern string. This method is used to modify a previously allowed rule to a more restricted type of access.
public void excludeRule(int access, String pattern);
access | The access types being added. Must be one of OPEN, READ, WRITE, DELETE, or CREATE, or any combination of these types used with the OR operator. |
pattern | The registry keys/values to which the specified access type is being added. This parameter must be of the form accepted by a WildcardExpression with the ESCAPED flag enabled. |