FileDialogPermissionAttribute

FileDialogPermissionAttributeserializable

System.Security.Permissions (mscorlib.dll)sealed class
public sealed class FileDialogPermissionAttribute : CodeAccessSecurityAttribute { // Public Constructors    public FileDialogPermissionAttribute(SecurityAction action); // Public Instance Properties    public bool Open{set; get; }    public bool Save{set; get; } // Public Instance Methods    public override IPermission CreatePermission(  ); // overrides SecurityAttribute }

This permission attribute provides declarative syntax support for FileDialogPermission. The Open and Save properties take Boolean values that identify the type of access granted to the file dialog UI components. Setting Open to true represents permission to execute the System.Windows.Forms.OpenFileDialog.OpenFile( ) method, and setting Save to true represents permission to execute the System.Windows.Forms.SaveFileDialog.OpenFile( ) method. Setting Unrestricted to true represents the ability to call both methods.

Hierarchy

System.Object System.Attribute SecurityAttribute CodeAccessSecurityAttribute FileDialogPermissionAttribute

Valid On

Assembly, Class, Struct, Constructor, Method



Programming. NET Security
Programming .Net Security
ISBN: 0596004427
EAN: 2147483647
Year: 2005
Pages: 346

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net