共用方式為


CosmosClientBuilder.WithSerializerOptions(CosmosSerializationOptions) Method

Definition

Set a custom serializer option.

public Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder WithSerializerOptions (Microsoft.Azure.Cosmos.CosmosSerializationOptions cosmosSerializerOptions);
member this.WithSerializerOptions : Microsoft.Azure.Cosmos.CosmosSerializationOptions -> Microsoft.Azure.Cosmos.Fluent.CosmosClientBuilder
Public Function WithSerializerOptions (cosmosSerializerOptions As CosmosSerializationOptions) As CosmosClientBuilder

Parameters

cosmosSerializerOptions
CosmosSerializationOptions

The custom class that implements CosmosSerializer

Returns

The CosmosClientBuilder object

Applies to

See also