37 SetUnrestricted(unrestricted:
true);
40 SetUnrestricted(unrestricted:
false);
71 if (XMLUtil.IsUnrestricted(esd))
73 SetUnrestricted(unrestricted:
true);
77 string text = esd.Attribute(
"Access");
84 int IBuiltInPermission.GetTokenIndex()
86 return GetTokenIndex();
89 internal static int GetTokenIndex()
104 if (!VerifyType(target))
143 return num <= num3 && num2 <= num4;
164 private void SetUnrestricted(
bool unrestricted)
188 return securityElement;
201 if (!VerifyType(target))
static string GetName(Type enumType, object value)
Retrieves the name of the constant in the specified enumeration that has the specified value.
Allows a permission to expose an unrestricted state.
override IPermission Copy()
Creates and returns an identical copy of the current permission.
FileDialogPermission(FileDialogPermissionAccess access)
Initializes a new instance of the T:System.Security.Permissions.FileDialogPermission class with the s...
The exception that is thrown for invalid casting or explicit conversion.
override SecurityElement ToXml()
Creates an XML encoding of the permission and its current state.
override IPermission Union(IPermission target)
Creates a permission that is the union of the current permission and the specified permission.
FileDialogPermissionAccess
Specifies the type of access to files allowed through the File dialog boxes.
static object Parse(Type enumType, string value)
Converts the string representation of the name or numeric value of one or more enumerated constants t...
bool IsUnrestricted()
Returns a value indicating whether the current permission is unrestricted.
Provides information about, and means to manipulate, the current environment and platform....
Provides the base class for enumerations.
Represents the XML object model for encoding security objects. This class cannot be inherited.
Defines the underlying structure of all code access permissions.
FileDialogPermissionAccess Access
Gets or sets the permitted access to files.
Defines methods implemented by permission types.
The exception that is thrown when one of the arguments provided to a method is not valid.
PermissionState
Specifies whether a permission should have all or no access to resources at creation.
override void FromXml(SecurityElement esd)
Reconstructs a permission with a specified state from an XML encoding.
void AddAttribute(string name, string value)
Adds a name/value attribute to an XML element.
FileDialogPermission(PermissionState state)
Initializes a new instance of the T:System.Security.Permissions.FileDialogPermission class with eithe...
Specifies that the class can be serialized.
override bool IsSubsetOf(IPermission target)
Determines whether the current permission is a subset of the specified permission.
override IPermission Intersect(IPermission target)
Creates and returns a permission that is the intersection of the current permission and the specified...
Controls the ability to access files or folders through a File dialog box. This class cannot be inher...