Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​AccessControl.​PrivilegeNotHeldException
Assembly: System.Security.AccessControl
Inheritance: object → Exception → SystemException → UnauthorizedAccessException → PrivilegeNotHeldException
Implemented Interfaces
The exception that is thrown when a method in the <see cref="N:System.Security.AccessControl" /> namespace attempts to enable a privilege that it does not have.
Properties
public
string
PrivilegeName
Gets the name of the privilege that is not enabled.
Data
public
string
HelpLink
public
int
HResult
public
Exception
InnerException
public
string
Message
public
string
Source
public
string
StackTrace
TargetSite
Methods
public
void
GetObjectData​(Runtime.​Serialization.​SerializationInfo info,
Runtime.​Serialization.​StreamingContext context)
Sets the <paramref name="info" /> parameter with information about the exception.
info
The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.
context
The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object