Bewerken

Share via


FederatedSessionExpiredException Constructors

Definition

Initializes a new instance of the FederatedSessionExpiredExceptionclass.

Overloads

FederatedSessionExpiredException()

Initializes a new instance of the FederatedSessionExpiredException class.

FederatedSessionExpiredException(String)

Initializes a new instance of the FederatedSessionExpiredException class with a specified error message.

FederatedSessionExpiredException(DateTime, DateTime)

Initializes a new instance of the FederatedSessionExpiredException class that has the specified instant that the session was validated and the instant that it expired.

FederatedSessionExpiredException(SerializationInfo, StreamingContext)

Initializes a new instance of the FederatedSessionExpiredException class with serialized data.

FederatedSessionExpiredException(String, Exception)

Initializes a new instance of the FederatedSessionExpiredException class with a specified error message and a reference to the inner exception that is the cause of this exception.

FederatedSessionExpiredException(DateTime, DateTime, Exception)

Initializes a new instance of the FederatedSessionExpiredException class with the specified instant that the session was validated, the instant that the session expired, and a reference to the inner exception that is the cause of this exception.

FederatedSessionExpiredException()

Initializes a new instance of the FederatedSessionExpiredException class.

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

Applies to

FederatedSessionExpiredException(String)

Initializes a new instance of the FederatedSessionExpiredException class with a specified error message.

public:
 FederatedSessionExpiredException(System::String ^ message);
public FederatedSessionExpiredException (string message);
new System.IdentityModel.Services.FederatedSessionExpiredException : string -> System.IdentityModel.Services.FederatedSessionExpiredException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Remarks

This constructor initializes the Message property of the new exception using the message parameter. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

The following table shows the initial property values for the new instance.

Property Value
InnerException null.
Message The error message string.

Applies to

FederatedSessionExpiredException(DateTime, DateTime)

Initializes a new instance of the FederatedSessionExpiredException class that has the specified instant that the session was validated and the instant that it expired.

public:
 FederatedSessionExpiredException(DateTime tested, DateTime expired);
public FederatedSessionExpiredException (DateTime tested, DateTime expired);
new System.IdentityModel.Services.FederatedSessionExpiredException : DateTime * DateTime -> System.IdentityModel.Services.FederatedSessionExpiredException
Public Sub New (tested As DateTime, expired As DateTime)

Parameters

tested
DateTime

The time that the session was validated.

expired
DateTime

The time that the session expired.

Applies to

FederatedSessionExpiredException(SerializationInfo, StreamingContext)

Initializes a new instance of the FederatedSessionExpiredException class with serialized data.

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

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Exceptions

info is null.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

Applies to

FederatedSessionExpiredException(String, Exception)

Initializes a new instance of the FederatedSessionExpiredException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 FederatedSessionExpiredException(System::String ^ message, Exception ^ inner);
public FederatedSessionExpiredException (string message, Exception inner);
new System.IdentityModel.Services.FederatedSessionExpiredException : string * Exception -> System.IdentityModel.Services.FederatedSessionExpiredException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

inner
Exception

The Exception that is the cause of the current exception. If the inner parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor.

The following table shows the initial property values for the new instance.

Property Value
InnerException The inner exception reference.
Message The error message string.

Applies to

FederatedSessionExpiredException(DateTime, DateTime, Exception)

Initializes a new instance of the FederatedSessionExpiredException class with the specified instant that the session was validated, the instant that the session expired, and a reference to the inner exception that is the cause of this exception.

public:
 FederatedSessionExpiredException(DateTime tested, DateTime expired, Exception ^ inner);
public FederatedSessionExpiredException (DateTime tested, DateTime expired, Exception inner);
new System.IdentityModel.Services.FederatedSessionExpiredException : DateTime * DateTime * Exception -> System.IdentityModel.Services.FederatedSessionExpiredException
Public Sub New (tested As DateTime, expired As DateTime, inner As Exception)

Parameters

tested
DateTime

The time at which the session was validated.

expired
DateTime

The time at which the session expired.

inner
Exception

The exception that is the cause of the current exception, or null if no inner exception is specified.

Applies to