RedirectionException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 RedirectionException 類別的新執行個體。
多載
RedirectionException(SerializationInfo, StreamingContext)
初始化一個新的類別實例 RedirectionException ,並指定為 SerializationInfoStreamingContext和 。
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)
參數
- info
- SerializationInfo
序列化資訊。
- context
- StreamingContext
串流的背景。
適用於
RedirectionException(RedirectionType, RedirectionDuration, RedirectionScope, RedirectionLocation[])
初始化一個新的類別實例 RedirectionException ,包含指定的 RedirectionType、 RedirectionDuration、 RedirectionScope及 的物件陣列 RedirectionLocation 。
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())
參數
- type
- RedirectionType
轉向的類型。
- duration
- RedirectionDuration
轉移的時間長短。
- scope
- RedirectionScope
轉向範圍。
- locations
- RedirectionLocation[]
轉移方向的位置。
適用於
RedirectionException(RedirectionType, RedirectionDuration, RedirectionScope, Exception, RedirectionLocation[])
初始化一個新的實例 RedirectionException ,包含指定的 RedirectionType、 RedirectionDuration、 RedirectionScope、 內部例外,以及物件陣列 RedirectionLocation 。
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())
參數
- type
- RedirectionType
轉向的類型。
- duration
- RedirectionDuration
轉移的時間長短。
- scope
- RedirectionScope
轉向範圍。
- innerException
- Exception
內心的例外。
- locations
- RedirectionLocation[]
轉移方向的位置。
適用於
RedirectionException(String, RedirectionType, RedirectionDuration, RedirectionScope, RedirectionLocation[])
初始化該類別的新實例RedirectionException,包含指定的訊息、 RedirectionType、 RedirectionDurationRedirectionScope及物件陣列RedirectionLocation。
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())
參數
- message
- String
描述目前例外的訊息。
- type
- RedirectionType
轉向的類型。
- duration
- RedirectionDuration
轉移的時間長短。
- scope
- RedirectionScope
轉向範圍。
- locations
- RedirectionLocation[]
轉移方向的位置。
適用於
RedirectionException(String, RedirectionType, RedirectionDuration, RedirectionScope, Exception, RedirectionLocation[])
初始化一個新的實例RedirectionException,包含指定的訊息字串、RedirectionType、RedirectionDurationRedirectionScope、內部例外及物件陣列RedirectionLocation。
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())
參數
- message
- String
轉接訊息。
- type
- RedirectionType
轉移注意力的類型。
- duration
- RedirectionDuration
轉移的時間長短。
- scope
- RedirectionScope
轉向範圍。
- innerException
- Exception
內心的例外。
- locations
- RedirectionLocation[]
轉移方向的位置。