PrivilegeNotHeldException Constructors
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 PrivilegeNotHeldException class.
PrivilegeNotHeldException() |
Initializes a new instance of the PrivilegeNotHeldException class. |
PrivilegeNotHeldException(String) |
Initializes a new instance of the PrivilegeNotHeldException class by using the specified privilege. |
PrivilegeNotHeldException(String, Exception) |
Initializes a new instance of the PrivilegeNotHeldException class by using the specified exception. |
- Source:
- PrivilegeNotHeldException.cs
Initializes a new instance of the PrivilegeNotHeldException class.
public:
PrivilegeNotHeldException();
public PrivilegeNotHeldException();
Public Sub New ()
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5 |
- Source:
- PrivilegeNotHeldException.cs
Initializes a new instance of the PrivilegeNotHeldException class by using the specified privilege.
public:
PrivilegeNotHeldException(System::String ^ privilege);
public PrivilegeNotHeldException(string? privilege);
public PrivilegeNotHeldException(string privilege);
new System.Security.AccessControl.PrivilegeNotHeldException : string -> System.Security.AccessControl.PrivilegeNotHeldException
Public Sub New (privilege As String)
Parameters
- privilege
- String
The privilege that is not enabled.
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5 |
- Source:
- PrivilegeNotHeldException.cs
Initializes a new instance of the PrivilegeNotHeldException class by using the specified exception.
public:
PrivilegeNotHeldException(System::String ^ privilege, Exception ^ inner);
public PrivilegeNotHeldException(string? privilege, Exception? inner);
public PrivilegeNotHeldException(string privilege, Exception inner);
new System.Security.AccessControl.PrivilegeNotHeldException : string * Exception -> System.Security.AccessControl.PrivilegeNotHeldException
Public Sub New (privilege As String, inner As Exception)
Parameters
- privilege
- String
The privilege that is not enabled.
- inner
- Exception
The exception that is the cause of the current exception. If the innerException
parameter is not a null reference (Nothing
in Visual Basic), the current exception is raised in a catch
block that handles the inner exception.
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: