共用方式為


MessagePackFormatter.DefaultUserDataSerializationOptions 屬性

定義

取得使用者資料 (引數的預設值 MessagePack.MessagePackSerializerOptions ,傳回 RPC 呼叫中的值和錯誤) ,然後再呼叫 SetMessagePackSerializerOptions(MessagePackSerializerOptions)

public static MessagePack.MessagePackSerializerOptions DefaultUserDataSerializationOptions { get; }
member this.DefaultUserDataSerializationOptions : MessagePack.MessagePackSerializerOptions
Public Shared ReadOnly Property DefaultUserDataSerializationOptions As MessagePackSerializerOptions

屬性值

MessagePack.MessagePackSerializerOptions

這會 MessagePack.Resolvers.StandardResolverAllowPrivate.Options 修改為使用 MessagePack.MessagePackSecurity.UntrustedData 安全性設定。

適用於