Share via


CheckoutException 构造函数

定义

初始化 CheckoutException 类的新实例。

重载

CheckoutException()

在不使用任何关联消息或错误代码的情况下初始化 CheckoutException 类的新实例。

CheckoutException(String)

使用指定的消息初始化 CheckoutException 类的新实例。

CheckoutException(SerializationInfo, StreamingContext)
已过时.

使用指定的序列化数据和上下文初始化 CheckoutException 类的新实例。

CheckoutException(String, Exception)

使用指定的详细说明和指定的异常初始化 CheckoutException 类的新实例。

CheckoutException(String, Int32)

使用指定的消息和错误代码初始化 CheckoutException 类的新实例。

CheckoutException()

Source:
CheckoutException.cs
Source:
CheckoutException.cs
Source:
CheckoutException.cs

在不使用任何关联消息或错误代码的情况下初始化 CheckoutException 类的新实例。

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

适用于

CheckoutException(String)

Source:
CheckoutException.cs
Source:
CheckoutException.cs
Source:
CheckoutException.cs

使用指定的消息初始化 CheckoutException 类的新实例。

public:
 CheckoutException(System::String ^ message);
public CheckoutException (string message);
public CheckoutException (string? message);
new System.ComponentModel.Design.CheckoutException : string -> System.ComponentModel.Design.CheckoutException
Public Sub New (message As String)

参数

message
String

描述异常的消息。

适用于

CheckoutException(SerializationInfo, StreamingContext)

Source:
CheckoutException.cs
Source:
CheckoutException.cs
Source:
CheckoutException.cs

注意

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

使用指定的序列化数据和上下文初始化 CheckoutException 类的新实例。

protected:
 CheckoutException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected CheckoutException (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 CheckoutException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ComponentModel.Design.CheckoutException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.Design.CheckoutException
[<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.ComponentModel.Design.CheckoutException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.Design.CheckoutException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

要用于反序列化的 SerializationInfo

context
StreamingContext

用于反序列化的目标。

属性

适用于

CheckoutException(String, Exception)

Source:
CheckoutException.cs
Source:
CheckoutException.cs
Source:
CheckoutException.cs

使用指定的详细说明和指定的异常初始化 CheckoutException 类的新实例。

public:
 CheckoutException(System::String ^ message, Exception ^ innerException);
public CheckoutException (string message, Exception innerException);
public CheckoutException (string? message, Exception? innerException);
new System.ComponentModel.Design.CheckoutException : string * Exception -> System.ComponentModel.Design.CheckoutException
Public Sub New (message As String, innerException As Exception)

参数

message
String

该错误的详细说明。

innerException
Exception

对导致此异常的内部异常的引用。

适用于

CheckoutException(String, Int32)

Source:
CheckoutException.cs
Source:
CheckoutException.cs
Source:
CheckoutException.cs

使用指定的消息和错误代码初始化 CheckoutException 类的新实例。

public:
 CheckoutException(System::String ^ message, int errorCode);
public CheckoutException (string message, int errorCode);
public CheckoutException (string? message, int errorCode);
new System.ComponentModel.Design.CheckoutException : string * int -> System.ComponentModel.Design.CheckoutException
Public Sub New (message As String, errorCode As Integer)

参数

message
String

描述异常的消息。

errorCode
Int32

要传递的错误代码。

适用于