共用方式為


CookieException 建構函式

定義

初始化 CookieException 類別的新執行個體。

多載

CookieException()

初始化 CookieException 類別的新執行個體。

CookieException(SerializationInfo, StreamingContext)
已淘汰.

使用 serializationInfostreamingContext 的指定值,初始化 CookieException 類別的新執行個體。

CookieException()

來源:
CookieException.cs
來源:
CookieException.cs
來源:
CookieException.cs

初始化 CookieException 類別的新執行個體。

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

備註

的無參數建構函式 CookieException

另請參閱

適用於

CookieException(SerializationInfo, StreamingContext)

來源:
CookieException.cs
來源:
CookieException.cs
來源:
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

屬性

備註

可讓您設定自訂串行化。

另請參閱

適用於