你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
StorageException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
StorageException() |
初始化 StorageException 类的新实例。 |
StorageException(String) |
使用指定的错误消息初始化 StorageException 类的新实例。 |
StorageException(SerializationInfo, StreamingContext) |
用序列化数据初始化 StorageException 类的新实例。 |
StorageException(String, Exception) |
使用指定的错误消息和对生成此异常的内部异常的引用初始化 类的新实例 StorageException 。 |
StorageException(RequestResult, String, Exception) |
使用指定的参数初始化 StorageException 类的新实例。 |
StorageException()
StorageException(String)
使用指定的错误消息初始化 StorageException 类的新实例。
public StorageException (string message);
new Microsoft.Azure.Storage.StorageException : string -> Microsoft.Azure.Storage.StorageException
Public Sub New (message As String)
参数
- message
- String
描述错误的消息。
适用于
StorageException(SerializationInfo, StreamingContext)
用序列化数据初始化 StorageException 类的新实例。
protected StorageException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Storage.StorageException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Storage.StorageException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
参数
- info
- SerializationInfo
保存 SerializationInfo 所引发异常的序列化对象数据的对象。
- context
- StreamingContext
StreamingContext,它包含关于源或目标的上下文信息。
注解
在反序列化过程中调用此构造函数来重建通过流传输的异常对象。
适用于
StorageException(String, Exception)
使用指定的错误消息和对生成此异常的内部异常的引用初始化 类的新实例 StorageException 。
public StorageException (string message, Exception innerException);
new Microsoft.Azure.Storage.StorageException : string * Exception -> Microsoft.Azure.Storage.StorageException
Public Sub New (message As String, innerException As Exception)
参数
- message
- String
异常错误消息。
- innerException
- Exception
内部异常。
适用于
StorageException(RequestResult, String, Exception)
使用指定的参数初始化 StorageException 类的新实例。
public StorageException (Microsoft.Azure.Storage.RequestResult res, string message, Exception inner);
new Microsoft.Azure.Storage.StorageException : Microsoft.Azure.Storage.RequestResult * string * Exception -> Microsoft.Azure.Storage.StorageException
Public Sub New (res As RequestResult, message As String, inner As Exception)
参数
- res
- RequestResult
请求结果。
- message
- String
异常消息。
- inner
- Exception
内部异常。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈