RedirectionException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the RedirectionException class.
Overloads
RedirectionException(SerializationInfo, StreamingContext)
Initializes a new instance of the RedirectionException class with the specified SerializationInfo and StreamingContext.
protected:
RedirectionException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected RedirectionException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.Channels.RedirectionException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.Channels.RedirectionException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The serialization information.
- context
- StreamingContext
The streaming context.
Applies to
RedirectionException(RedirectionType, RedirectionDuration, RedirectionScope, RedirectionLocation[])
Initializes a new instance of the RedirectionException class with the specified RedirectionType, RedirectionDuration, RedirectionScope, and array of RedirectionLocation objects.
public:
RedirectionException(System::ServiceModel::Channels::RedirectionType ^ type, System::ServiceModel::Channels::RedirectionDuration ^ duration, System::ServiceModel::Channels::RedirectionScope ^ scope, ... cli::array <System::ServiceModel::Channels::RedirectionLocation ^> ^ locations);
public RedirectionException (System.ServiceModel.Channels.RedirectionType type, System.ServiceModel.Channels.RedirectionDuration duration, System.ServiceModel.Channels.RedirectionScope scope, params System.ServiceModel.Channels.RedirectionLocation[] locations);
new System.ServiceModel.Channels.RedirectionException : System.ServiceModel.Channels.RedirectionType * System.ServiceModel.Channels.RedirectionDuration * System.ServiceModel.Channels.RedirectionScope * System.ServiceModel.Channels.RedirectionLocation[] -> System.ServiceModel.Channels.RedirectionException
Public Sub New (type As RedirectionType, duration As RedirectionDuration, scope As RedirectionScope, ParamArray locations As RedirectionLocation())
Parameters
- type
- RedirectionType
The type of the redirection.
- duration
- RedirectionDuration
The duration of the redirection.
- scope
- RedirectionScope
The scope of the redirection.
- locations
- RedirectionLocation[]
The locations for the redirection.
Applies to
RedirectionException(RedirectionType, RedirectionDuration, RedirectionScope, Exception, RedirectionLocation[])
Initializes a new instance of the RedirectionException with the specified RedirectionType, RedirectionDuration, RedirectionScope, inner exception, and array of RedirectionLocation objects.
public:
RedirectionException(System::ServiceModel::Channels::RedirectionType ^ type, System::ServiceModel::Channels::RedirectionDuration ^ duration, System::ServiceModel::Channels::RedirectionScope ^ scope, Exception ^ innerException, ... cli::array <System::ServiceModel::Channels::RedirectionLocation ^> ^ locations);
public RedirectionException (System.ServiceModel.Channels.RedirectionType type, System.ServiceModel.Channels.RedirectionDuration duration, System.ServiceModel.Channels.RedirectionScope scope, Exception innerException, params System.ServiceModel.Channels.RedirectionLocation[] locations);
new System.ServiceModel.Channels.RedirectionException : System.ServiceModel.Channels.RedirectionType * System.ServiceModel.Channels.RedirectionDuration * System.ServiceModel.Channels.RedirectionScope * Exception * System.ServiceModel.Channels.RedirectionLocation[] -> System.ServiceModel.Channels.RedirectionException
Public Sub New (type As RedirectionType, duration As RedirectionDuration, scope As RedirectionScope, innerException As Exception, ParamArray locations As RedirectionLocation())
Parameters
- type
- RedirectionType
The type of the redirection.
- duration
- RedirectionDuration
The duration of the redirection.
- scope
- RedirectionScope
The scope of the redirection.
- innerException
- Exception
The inner exception.
- locations
- RedirectionLocation[]
The locations for the redirection.
Applies to
RedirectionException(String, RedirectionType, RedirectionDuration, RedirectionScope, RedirectionLocation[])
Initializes a new instance of the RedirectionException class with the specified message, RedirectionType, RedirectionDuration, RedirectionScope, and array of RedirectionLocation objects.
public:
RedirectionException(System::String ^ message, System::ServiceModel::Channels::RedirectionType ^ type, System::ServiceModel::Channels::RedirectionDuration ^ duration, System::ServiceModel::Channels::RedirectionScope ^ scope, ... cli::array <System::ServiceModel::Channels::RedirectionLocation ^> ^ locations);
public RedirectionException (string message, System.ServiceModel.Channels.RedirectionType type, System.ServiceModel.Channels.RedirectionDuration duration, System.ServiceModel.Channels.RedirectionScope scope, params System.ServiceModel.Channels.RedirectionLocation[] locations);
new System.ServiceModel.Channels.RedirectionException : string * System.ServiceModel.Channels.RedirectionType * System.ServiceModel.Channels.RedirectionDuration * System.ServiceModel.Channels.RedirectionScope * System.ServiceModel.Channels.RedirectionLocation[] -> System.ServiceModel.Channels.RedirectionException
Public Sub New (message As String, type As RedirectionType, duration As RedirectionDuration, scope As RedirectionScope, ParamArray locations As RedirectionLocation())
Parameters
- message
- String
The message that describes the current exception.
- type
- RedirectionType
The type of the redirection.
- duration
- RedirectionDuration
The duration of the redirection.
- scope
- RedirectionScope
The scope of the redirection.
- locations
- RedirectionLocation[]
The locations for the redirection.
Applies to
RedirectionException(String, RedirectionType, RedirectionDuration, RedirectionScope, Exception, RedirectionLocation[])
Initializes a new instance of the RedirectionException with the specified message string, RedirectionType, RedirectionDuration, RedirectionScope, inner exception, and array of RedirectionLocation objects.
public:
RedirectionException(System::String ^ message, System::ServiceModel::Channels::RedirectionType ^ type, System::ServiceModel::Channels::RedirectionDuration ^ duration, System::ServiceModel::Channels::RedirectionScope ^ scope, Exception ^ innerException, ... cli::array <System::ServiceModel::Channels::RedirectionLocation ^> ^ locations);
public RedirectionException (string message, System.ServiceModel.Channels.RedirectionType type, System.ServiceModel.Channels.RedirectionDuration duration, System.ServiceModel.Channels.RedirectionScope scope, Exception innerException, params System.ServiceModel.Channels.RedirectionLocation[] locations);
new System.ServiceModel.Channels.RedirectionException : string * System.ServiceModel.Channels.RedirectionType * System.ServiceModel.Channels.RedirectionDuration * System.ServiceModel.Channels.RedirectionScope * Exception * System.ServiceModel.Channels.RedirectionLocation[] -> System.ServiceModel.Channels.RedirectionException
Public Sub New (message As String, type As RedirectionType, duration As RedirectionDuration, scope As RedirectionScope, innerException As Exception, ParamArray locations As RedirectionLocation())
Parameters
- message
- String
The redirection message.
- type
- RedirectionType
The type of redirection.
- duration
- RedirectionDuration
The duration of the redirection.
- scope
- RedirectionScope
The scope of the redirection.
- innerException
- Exception
The inner exception.
- locations
- RedirectionLocation[]
The locations for the redirection.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應