RpcArgumentDeserializationException 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当参数无法反序列化到请求的类型时引发 TryGetArgumentByNameOrIndex(String, Int32, Type, Object) 的异常,通常是由于反序列化程序引发的不兼容或异常。
[System.Serializable]
public class RpcArgumentDeserializationException : StreamJsonRpc.RemoteRpcException
[<System.Serializable>]
type RpcArgumentDeserializationException = class
inherit RemoteRpcException
Public Class RpcArgumentDeserializationException
Inherits RemoteRpcException
- 继承
- 属性
构造函数
属性
| 名称 | 说明 |
|---|---|
| ArgumentName |
从无法反序列化的 JSON-RPC 请求中获取参数的名称(如果可用)。 |
| ArgumentPosition |
从无法反序列化的 JSON-RPC 请求中获取自变量的从 0 开始的索引(如果可用)。 |
| DeserializedErrorData |
获取或设置 |
| DeserializedType |
Type获取尝试参数反序列化的项。 |
| ErrorCode |
获取或设置响应中字段的值 |
| ErrorData |
获取或设置 |
方法
| 名称 | 说明 |
|---|---|
| GetObjectData(SerializationInfo, StreamingContext) |
当参数无法反序列化到请求的类型时引发 TryGetArgumentByNameOrIndex(String, Int32, Type, Object) 的异常,通常是由于反序列化程序引发的不兼容或异常。 |