ServiceCommandException 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
ServiceCommandException() |
unimplemented standard constructor |
ServiceCommandException(String) |
standard constructor |
ServiceCommandException(SerializationInfo, StreamingContext) |
Obsolete.
serialization constructor |
ServiceCommandException(String, Exception) |
standard constructor |
ServiceCommandException()
unimplemented standard constructor
public:
ServiceCommandException();
public:
ServiceCommandException();
ServiceCommandException();
public ServiceCommandException ();
Public Sub New ()
Applies to
ServiceCommandException(String)
standard constructor
public:
ServiceCommandException(System::String ^ message);
public:
ServiceCommandException(Platform::String ^ message);
ServiceCommandException(std::wstring const & message);
public ServiceCommandException (string message);
new Microsoft.PowerShell.Commands.ServiceCommandException : string -> Microsoft.PowerShell.Commands.ServiceCommandException
Public Sub New (message As String)
Parameters
- message
- String
Applies to
ServiceCommandException(SerializationInfo, StreamingContext)
Caution
Legacy serialization support is deprecated since .NET 8, hence this method is now marked as obsolete
serialization constructor
protected:
ServiceCommandException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ServiceCommandException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("Legacy serialization support is deprecated since .NET 8, hence this method is now marked as obsolete", DiagnosticId="SYSLIB0051")]
protected ServiceCommandException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.PowerShell.Commands.ServiceCommandException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.PowerShell.Commands.ServiceCommandException
[<System.Obsolete("Legacy serialization support is deprecated since .NET 8, hence this method is now marked as obsolete", DiagnosticId="SYSLIB0051")>]
new Microsoft.PowerShell.Commands.ServiceCommandException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.PowerShell.Commands.ServiceCommandException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
- context
- StreamingContext
- Attributes
Applies to
ServiceCommandException(String, Exception)
standard constructor
public:
ServiceCommandException(System::String ^ message, Exception ^ innerException);
public ServiceCommandException (string message, Exception innerException);
new Microsoft.PowerShell.Commands.ServiceCommandException : string * Exception -> Microsoft.PowerShell.Commands.ServiceCommandException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
- innerException
- Exception