VerificationException VerificationException VerificationException VerificationException Constructors

定义

重载

VerificationException() VerificationException() VerificationException()

使用默认属性初始化 VerificationException 类的新实例。Initializes a new instance of the VerificationException class with default properties.

VerificationException(String) VerificationException(String) VerificationException(String) VerificationException(String)

用说明性消息初始化 VerificationException 类的新实例。Initializes a new instance of the VerificationException class with an explanatory message.

VerificationException(SerializationInfo, StreamingContext) VerificationException(SerializationInfo, StreamingContext) VerificationException(SerializationInfo, StreamingContext) VerificationException(SerializationInfo, StreamingContext)

用序列化数据初始化 VerificationException 类的新实例。Initializes a new instance of the VerificationException class with serialized data.

VerificationException(String, Exception) VerificationException(String, Exception) VerificationException(String, Exception) VerificationException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 VerificationException 类的新实例。Initializes a new instance of the VerificationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

VerificationException() VerificationException() VerificationException()

使用默认属性初始化 VerificationException 类的新实例。Initializes a new instance of the VerificationException class with default properties.

public:
 VerificationException();
public VerificationException ();
Public Sub New ()

注解

VerificationException使用 HRESULT COR_E_VERIFICATION。VerificationException uses the HRESULT COR_E_VERIFICATION.

VerificationException(String) VerificationException(String) VerificationException(String) VerificationException(String)

用说明性消息初始化 VerificationException 类的新实例。Initializes a new instance of the VerificationException class with an explanatory message.

public:
 VerificationException(System::String ^ message);
public VerificationException (string message);
new System.Security.VerificationException : string -> System.Security.VerificationException
Public Sub New (message As String)

参数

message
String String String String

一条指示异常发生原因的消息。A message indicating the reason the exception occurred.

VerificationException(SerializationInfo, StreamingContext) VerificationException(SerializationInfo, StreamingContext) VerificationException(SerializationInfo, StreamingContext) VerificationException(SerializationInfo, StreamingContext)

用序列化数据初始化 VerificationException 类的新实例。Initializes a new instance of the VerificationException class with serialized data.

protected:
 VerificationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected VerificationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Security.VerificationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.VerificationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

承载序列化对象数据的对象。The object that holds the serialized object data.

context
StreamingContext StreamingContext StreamingContext StreamingContext

关于来源和目标的上下文信息The contextual information about the source or destination.

注解

此构造函数在反序列化过程中调用,以便重建通过流传输的异常对象。This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

VerificationException(String, Exception) VerificationException(String, Exception) VerificationException(String, Exception) VerificationException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 VerificationException 类的新实例。Initializes a new instance of the VerificationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 VerificationException(System::String ^ message, Exception ^ innerException);
public VerificationException (string message, Exception innerException);
new System.Security.VerificationException : string * Exception -> System.Security.VerificationException
Public Sub New (message As String, innerException As Exception)

参数

message
String String String String

解释异常原因的错误消息。The error message that explains the reason for the exception.

innerException
Exception Exception Exception Exception

导致当前异常的异常。The exception that is the cause of the current exception. 如果 innerException 参数不为 null,则当前异常将在处理内部异常的 catch 块中引发。If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

注解

因前一个异常而直接引发的异常应在 InnerException 属性中包含对前一个异常的引用。An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. InnerException 属性返回的值与传递到构造函数中的值相同;或者,如果 null 属性没有向构造函数提供内部异常值,则为 InnerExceptionThe InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

下表显示 VerificationException 的实例的初始属性值。The following table shows the initial property values for an instance of VerificationException.

PropertyProperty “值”Value
InnerException 内部异常引用。The inner exception reference.
Message 错误消息字符串。The error message string.
另请参阅

适用于