共用方式為


MessagePackHubProtocolOptions.SerializerOptions 屬性

定義

取得或設定 MessagePack.MessagePackSerializerOptions 內部使用的 MessagePack.MessagePackSerializer

如果您覆寫預設值,強烈建議您藉由呼叫 下列專案來設定 MessagePack.MessagePackSecurityMessagePack.MessagePackSecurity.UntrustedData

customMessagePackSerializerOptions = customMessagePackSerializerOptions.WithSecurity(MessagePackSecurity.UntrustedData) 如果您修改預設選項,您也必須將更新的選項指派回 SerializerOptions 屬性: options.SerializerOptions = options.SerializerOptions.WithResolver(new CustomResolver());
public MessagePack.MessagePackSerializerOptions SerializerOptions { get; set; }
member this.SerializerOptions : MessagePack.MessagePackSerializerOptions with get, set
Public Property SerializerOptions As MessagePackSerializerOptions

屬性值

MessagePack.MessagePackSerializerOptions

適用於