语言

UriTemplateMatchException 构造函数

定义

初始化 UriTemplateMatchException 类的新实例。

重载

名称 说明
UriTemplateMatchException()

初始化 UriTemplateMatchException 类的新实例。

UriTemplateMatchException(String)

使用指定的错误消息初始化类的新实例 UriTemplateMatchException 。

UriTemplateMatchException(SerializationInfo, StreamingContext)

使用序列化的数据初始化 UriTemplateMatchException 类的新实例。

UriTemplateMatchException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用初始化 UriTemplateMatchException 类的新实例。

UriTemplateMatchException()

初始化 UriTemplateMatchException 类的新实例。

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

适用于

UriTemplateMatchException(String)

使用指定的错误消息初始化类的新实例 UriTemplateMatchException 。

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

参数

message
String

解释异常原因的错误消息。

适用于

UriTemplateMatchException(SerializationInfo, StreamingContext)

使用序列化的数据初始化 UriTemplateMatchException 类的新实例。

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

参数

info
SerializationInfo

保存序列化数据对象的对象。

context
StreamingContext

有关源或目标的上下文信息。

适用于

UriTemplateMatchException(String, Exception)

使用指定的错误消息和对作为此异常原因的内部异常的引用初始化 UriTemplateMatchException 类的新实例。

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

参数

message
String

解释异常原因的错误消息。

innerException
Exception

是当前异常原因的异常。

适用于