Поделиться через


JsonRpcDisconnectedEventArgs Конструкторы

Определение

Перегрузки

JsonRpcDisconnectedEventArgs(String, DisconnectedReason)

Инициализирует новый экземпляр класса JsonRpcDisconnectedEventArgs.

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, JToken)
Устаревшие..
Устаревшие..

Инициализирует новый экземпляр класса JsonRpcDisconnectedEventArgs.

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, Exception)

Инициализирует новый экземпляр класса JsonRpcDisconnectedEventArgs.

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, String)

Инициализирует новый экземпляр класса JsonRpcDisconnectedEventArgs.

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, JToken, Exception)
Устаревшие..
Устаревшие..

Инициализирует новый экземпляр класса JsonRpcDisconnectedEventArgs.

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, String, Exception)

Инициализирует новый экземпляр класса JsonRpcDisconnectedEventArgs.

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

Исключение.

Применяется к