SessionStateUnauthorizedAccessException 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.
Overloads
SessionStateUnauthorizedAccessException() |
Constructs a SessionStateUnauthorizedAccessException. |
SessionStateUnauthorizedAccessException(String) |
Constructs a SessionStateUnauthorizedAccessException. |
SessionStateUnauthorizedAccessException(SerializationInfo, StreamingContext) |
Obsolete.
Constructs a SessionStateUnauthorizedAccessException using serialized data. |
SessionStateUnauthorizedAccessException(String, Exception) |
Constructs a SessionStateUnauthorizedAccessException. |
SessionStateUnauthorizedAccessException()
Constructs a SessionStateUnauthorizedAccessException.
public:
SessionStateUnauthorizedAccessException();
public:
SessionStateUnauthorizedAccessException();
SessionStateUnauthorizedAccessException();
public SessionStateUnauthorizedAccessException ();
Public Sub New ()
Applies to
SessionStateUnauthorizedAccessException(String)
Constructs a SessionStateUnauthorizedAccessException.
public:
SessionStateUnauthorizedAccessException(System::String ^ message);
public:
SessionStateUnauthorizedAccessException(Platform::String ^ message);
SessionStateUnauthorizedAccessException(std::wstring const & message);
public SessionStateUnauthorizedAccessException (string message);
new System.Management.Automation.SessionStateUnauthorizedAccessException : string -> System.Management.Automation.SessionStateUnauthorizedAccessException
Public Sub New (message As String)
Parameters
- message
- String
The message used by the exception.
Applies to
SessionStateUnauthorizedAccessException(SerializationInfo, StreamingContext)
Caution
Legacy serialization support is deprecated since .NET 8
Constructs a SessionStateUnauthorizedAccessException using serialized data.
protected:
SessionStateUnauthorizedAccessException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SessionStateUnauthorizedAccessException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")]
protected SessionStateUnauthorizedAccessException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.Automation.SessionStateUnauthorizedAccessException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.SessionStateUnauthorizedAccessException
[<System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")>]
new System.Management.Automation.SessionStateUnauthorizedAccessException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.SessionStateUnauthorizedAccessException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
Serialization information.
- context
- StreamingContext
Streaming context.
- Attributes
Applies to
SessionStateUnauthorizedAccessException(String, Exception)
Constructs a SessionStateUnauthorizedAccessException.
public:
SessionStateUnauthorizedAccessException(System::String ^ message, Exception ^ innerException);
public SessionStateUnauthorizedAccessException (string message, Exception innerException);
new System.Management.Automation.SessionStateUnauthorizedAccessException : string * Exception -> System.Management.Automation.SessionStateUnauthorizedAccessException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The message used by the exception.
- innerException
- Exception
The exception that caused the error.