CookieException 构造函数

定义

初始化 CookieException 类的新实例。

重载

CookieException()

初始化 CookieException 类的新实例。

CookieException(SerializationInfo, StreamingContext)
已过时.

使用 serializationInfostreamingContext 的特定值初始化 CookieException 类的新实例。

CookieException()

Source:
CookieException.cs
Source:
CookieException.cs
Source:
CookieException.cs

初始化 CookieException 类的新实例。

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

注解

CookieException无参数构造函数。

另请参阅

适用于

CookieException(SerializationInfo, StreamingContext)

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.

使用 serializationInfostreamingContext 的特定值初始化 CookieException 类的新实例。

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}")]
protected CookieException (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Net.CookieException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.CookieException
[<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
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

参数

serializationInfo
SerializationInfo

要使用的 SerializationInfo

streamingContext
StreamingContext

要使用的 StreamingContext

属性

注解

允许设置自定义序列化。

另请参阅

适用于