MessagePackHubProtocolOptions.SerializerOptions 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定 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