FileDialogPermission Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the FileDialogPermission class.
Overloads
FileDialogPermission(FileDialogPermissionAccess) |
Initializes a new instance of the FileDialogPermission class with the specified access. |
FileDialogPermission(PermissionState) |
Initializes a new instance of the FileDialogPermission class with either restricted or unrestricted permission, as specified. |
FileDialogPermission(FileDialogPermissionAccess)
- Source:
- FileDialogPermission.cs
- Source:
- FileDialogPermission.cs
- Source:
- FileDialogPermission.cs
Initializes a new instance of the FileDialogPermission class with the specified access.
public:
FileDialogPermission(System::Security::Permissions::FileDialogPermissionAccess access);
public FileDialogPermission (System.Security.Permissions.FileDialogPermissionAccess access);
new System.Security.Permissions.FileDialogPermission : System.Security.Permissions.FileDialogPermissionAccess -> System.Security.Permissions.FileDialogPermission
Public Sub New (access As FileDialogPermissionAccess)
Parameters
- access
- FileDialogPermissionAccess
A bitwise combination of the FileDialogPermissionAccess values.
Exceptions
The access
parameter is not a valid combination of the FileDialogPermissionAccess values.
Applies to
FileDialogPermission(PermissionState)
- Source:
- FileDialogPermission.cs
- Source:
- FileDialogPermission.cs
- Source:
- FileDialogPermission.cs
Initializes a new instance of the FileDialogPermission class with either restricted or unrestricted permission, as specified.
public:
FileDialogPermission(System::Security::Permissions::PermissionState state);
public FileDialogPermission (System.Security.Permissions.PermissionState state);
new System.Security.Permissions.FileDialogPermission : System.Security.Permissions.PermissionState -> System.Security.Permissions.FileDialogPermission
Public Sub New (state As PermissionState)
Parameters
- state
- PermissionState
One of the PermissionState values (Unrestricted
or None
).
Exceptions
The state
parameter is not a valid value of PermissionState.
Remarks
Creates either fully restricted (None
) or Unrestricted
access to File dialog boxes.