CookieException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 CookieException 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| CookieException() |
初始化 CookieException 类的新实例。 |
| CookieException(String) |
使用指定的错误消息初始化类的新实例 CookieException 。 |
| CookieException(SerializationInfo, StreamingContext) |
已过时.
使用特定值CookieException初始化类的新实例 |
| CookieException(String, Exception) |
使用指定的错误消息和对作为此异常原因的内部异常的引用初始化 CookieException 类的新实例。 |
CookieException()
- Source:
- CookieException.cs
- Source:
- CookieException.cs
- Source:
- CookieException.cs
- Source:
- CookieException.cs
- Source:
- CookieException.cs
初始化 CookieException 类的新实例。
public:
CookieException();
public CookieException();
Public Sub New ()
注解
的 CookieException无参数构造函数 。
另请参阅
适用于
CookieException(String)
- Source:
- CookieException.cs
- Source:
- CookieException.cs
使用指定的错误消息初始化类的新实例 CookieException 。
public:
CookieException(System::String ^ message);
public CookieException(string? message);
new System.Net.CookieException : string -> System.Net.CookieException
Public Sub New (message As String)
参数
适用于
CookieException(SerializationInfo, StreamingContext)
- Source:
- CookieException.cs
- Source:
- CookieException.cs
- Source:
- CookieException.cs
- Source:
- CookieException.cs
- Source:
- CookieException.cs
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
使用特定值CookieException初始化类的新实例serializationInfo和 streamingContext。
protected:
CookieException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
[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 CookieException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected CookieException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[<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.Net.CookieException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.CookieException
new System.Net.CookieException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.CookieException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)
参数
- serializationInfo
- SerializationInfo
SerializationInfo要使用的。
- streamingContext
- StreamingContext
StreamingContext要使用的。
- 属性
注解
允许设置自定义序列化。
另请参阅
适用于
CookieException(String, Exception)
- Source:
- CookieException.cs
- Source:
- CookieException.cs
使用指定的错误消息和对作为此异常原因的内部异常的引用初始化 CookieException 类的新实例。
public:
CookieException(System::String ^ message, Exception ^ innerException);
public CookieException(string? message, Exception? innerException);
new System.Net.CookieException : string * Exception -> System.Net.CookieException
Public Sub New (message As String, innerException As Exception)
参数
- innerException
- Exception
是当前异常原因的异常。