JsonRpcDisconnectedEventArgs 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
JsonRpcDisconnectedEventArgs(String, DisconnectedReason)
初始化 JsonRpcDisconnectedEventArgs 類別的新執行個體。
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason);
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
Public Sub New (description As String, reason As DisconnectedReason)
參數
- description
- String
描述。
- reason
- DisconnectedReason
中斷連線的原因。
適用於
JsonRpcDisconnectedEventArgs(String, DisconnectedReason, JToken)
警告
此 API 現已淘汰。
警告
Avoid overloads that assume the message is exchanged by JToken.
初始化 JsonRpcDisconnectedEventArgs 類別的新執行個體。
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken lastMessage);
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken? lastMessage);
[System.Obsolete]
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken? lastMessage);
[System.Obsolete("Avoid overloads that assume the message is exchanged by JToken.")]
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken? lastMessage);
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Newtonsoft.Json.Linq.JToken -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
[<System.Obsolete>]
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Newtonsoft.Json.Linq.JToken -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
[<System.Obsolete("Avoid overloads that assume the message is exchanged by JToken.")>]
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Newtonsoft.Json.Linq.JToken -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
Public Sub New (description As String, reason As DisconnectedReason, lastMessage As JToken)
參數
- description
- String
描述。
- reason
- DisconnectedReason
中斷連線的原因。
- lastMessage
- Newtonsoft.Json.Linq.JToken
最後訊息。
- 屬性
適用於
JsonRpcDisconnectedEventArgs(String, DisconnectedReason, Exception)
初始化 JsonRpcDisconnectedEventArgs 類別的新執行個體。
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Exception exception);
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Exception? exception);
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Exception -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
Public Sub New (description As String, reason As DisconnectedReason, exception As Exception)
參數
- description
- String
描述。
- reason
- DisconnectedReason
中斷連線的原因。
- exception
- Exception
例外狀況。
適用於
JsonRpcDisconnectedEventArgs(String, DisconnectedReason, String)
初始化 JsonRpcDisconnectedEventArgs 類別的新執行個體。
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, string lastMessage);
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * string -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
Public Sub New (description As String, reason As DisconnectedReason, lastMessage As String)
參數
- description
- String
描述。
- reason
- DisconnectedReason
中斷連線的原因。
- lastMessage
- String
最後訊息。
適用於
JsonRpcDisconnectedEventArgs(String, DisconnectedReason, JToken, Exception)
警告
此 API 現已淘汰。
警告
Avoid overloads that assume the message is exchanged by JToken.
初始化 JsonRpcDisconnectedEventArgs 類別的新執行個體。
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken lastMessage, Exception exception);
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken? lastMessage, Exception? exception);
[System.Obsolete]
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken? lastMessage, Exception? exception);
[System.Obsolete("Avoid overloads that assume the message is exchanged by JToken.")]
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken? lastMessage, Exception? exception);
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Newtonsoft.Json.Linq.JToken * Exception -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
[<System.Obsolete>]
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Newtonsoft.Json.Linq.JToken * Exception -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
[<System.Obsolete("Avoid overloads that assume the message is exchanged by JToken.")>]
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Newtonsoft.Json.Linq.JToken * Exception -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
Public Sub New (description As String, reason As DisconnectedReason, lastMessage As JToken, exception As Exception)
參數
- description
- String
描述。
- reason
- DisconnectedReason
中斷連線的原因。
- lastMessage
- Newtonsoft.Json.Linq.JToken
最後訊息。
- exception
- Exception
例外狀況。
- 屬性
適用於
JsonRpcDisconnectedEventArgs(String, DisconnectedReason, String, Exception)
初始化 JsonRpcDisconnectedEventArgs 類別的新執行個體。
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, string lastMessage, Exception exception);
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * string * Exception -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
Public Sub New (description As String, reason As DisconnectedReason, lastMessage As String, exception As Exception)
參數
- description
- String
描述。
- reason
- DisconnectedReason
中斷連線的原因。
- lastMessage
- String
最後訊息。
- exception
- Exception
例外狀況。