CookieException Constructors

Definition

Initializes a new instance of the CookieException class.

Overloads

CookieException()

Initializes a new instance of the CookieException class.

CookieException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the CookieException class with specific values of serializationInfo and streamingContext.

CookieException()

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

Initializes a new instance of the CookieException class.

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

Remarks

The parameterless constructor for CookieException.

See also

Applies to

CookieException(SerializationInfo, StreamingContext)

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

Caution

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

Initializes a new instance of the CookieException class with specific values of serializationInfo and streamingContext.

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)

Parameters

serializationInfo
SerializationInfo

The SerializationInfo to be used.

streamingContext
StreamingContext

The StreamingContext to be used.

Attributes

Remarks

Allows you to set up custom serialization.

See also

Applies to