TypeDescriptorPermission 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 TypeDescriptorPermission class.
Overloads
TypeDescriptorPermission(PermissionState) |
Initializes a new instance of the TypeDescriptorPermission class. |
TypeDescriptorPermission(TypeDescriptorPermissionFlags) |
Initializes a new instance of the TypeDescriptorPermission class with the specified permission flags. |
TypeDescriptorPermission(PermissionState)
- Source:
- TypeDescriptorPermission.cs
- Source:
- TypeDescriptorPermission.cs
Initializes a new instance of the TypeDescriptorPermission class.
public:
TypeDescriptorPermission(System::Security::Permissions::PermissionState state);
public TypeDescriptorPermission (System.Security.Permissions.PermissionState state);
new System.Security.Permissions.TypeDescriptorPermission : System.Security.Permissions.PermissionState -> System.Security.Permissions.TypeDescriptorPermission
Public Sub New (state As PermissionState)
Parameters
- state
- PermissionState
The PermissionState to request. Only Unrestricted and None are valid.
Exceptions
state
is not a valid permission state. Only Unrestricted and None are valid.
See also
Applies to
TypeDescriptorPermission(TypeDescriptorPermissionFlags)
- Source:
- TypeDescriptorPermission.cs
- Source:
- TypeDescriptorPermission.cs
Initializes a new instance of the TypeDescriptorPermission class with the specified permission flags.
public:
TypeDescriptorPermission(System::Security::Permissions::TypeDescriptorPermissionFlags flag);
public TypeDescriptorPermission (System.Security.Permissions.TypeDescriptorPermissionFlags flag);
new System.Security.Permissions.TypeDescriptorPermission : System.Security.Permissions.TypeDescriptorPermissionFlags -> System.Security.Permissions.TypeDescriptorPermission
Public Sub New (flag As TypeDescriptorPermissionFlags)
Parameters
The permission flags to request.