ManagementException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 ManagementException 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| ManagementException() |
初始化 ManagementException 类的新实例。 |
| ManagementException(String) |
使用指定的错误消息初始化类的新实例 ManagementException 。 |
| ManagementException(SerializationInfo, StreamingContext) |
已过时.
初始化可序列化的 ManagementException 类的新实例。 |
| ManagementException(String, Exception) |
初始化类的 ManagementException 空新实例。
|
ManagementException()
- Source:
- ManagementException.cs
- Source:
- ManagementException.cs
- Source:
- ManagementException.cs
- Source:
- ManagementException.cs
初始化 ManagementException 类的新实例。
public:
ManagementException();
public ManagementException();
Public Sub New ()
注解
.NET Framework 安全性
直接调用方完全信任。 此成员不能由部分受信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码的库。
适用于
ManagementException(String)
- Source:
- ManagementException.cs
- Source:
- ManagementException.cs
- Source:
- ManagementException.cs
- Source:
- ManagementException.cs
使用指定的错误消息初始化类的新实例 ManagementException 。
public:
ManagementException(System::String ^ message);
public ManagementException(string message);
new System.Management.ManagementException : string -> System.Management.ManagementException
Public Sub New (message As String)
参数
- message
- String
描述错误的消息。
适用于
ManagementException(SerializationInfo, StreamingContext)
- Source:
- ManagementException.cs
- Source:
- ManagementException.cs
- Source:
- ManagementException.cs
- Source:
- ManagementException.cs
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
初始化可序列化的 ManagementException 类的新实例。
protected:
ManagementException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected ManagementException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected ManagementException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Management.ManagementException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.ManagementException
new System.Management.ManagementException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.ManagementException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
要 SerializationInfo 填充数据。
- context
- StreamingContext
StreamingContext此序列化的目标。
- 属性
注解
.NET Framework 安全性
直接调用方完全信任。 此成员不能由部分受信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码的库。
适用于
ManagementException(String, Exception)
- Source:
- ManagementException.cs
- Source:
- ManagementException.cs
- Source:
- ManagementException.cs
- Source:
- ManagementException.cs
初始化类的 ManagementException 空新实例。
innerException如果参数不是null,则当前异常在处理内部异常的 catch 块中引发。
public:
ManagementException(System::String ^ message, Exception ^ innerException);
public ManagementException(string message, Exception innerException);
new System.Management.ManagementException : string * Exception -> System.Management.ManagementException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
描述错误的消息。
- innerException
- Exception
是当前异常原因的异常。
注解
.NET Framework 安全性
直接调用方完全信任。 此成员不能由部分受信任的代码使用。 有关详细信息,请参阅 使用部分受信任的代码的库。