PrivilegeNotHeldException 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 PrivilegeNotHeldException class.
Overloads
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. |
PrivilegeNotHeldException()
Initializes a new instance of the PrivilegeNotHeldException class.
public:
PrivilegeNotHeldException();
public PrivilegeNotHeldException ();
Public Sub New ()
Applies to
PrivilegeNotHeldException(String)
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
PrivilegeNotHeldException(String, Exception)
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
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de