CosmosAutomaticIndexingBuilder.Except(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a path to the container's ExcludedPaths. The path must use Cosmos indexing-policy syntax
(e.g., /secret/? for a leaf, /items/[]/* for an array sub-tree). Throws if automatic
indexing was disabled via HasAutomaticIndexing(false).
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.CosmosAutomaticIndexingBuilder Except(string path);
abstract member Except : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.CosmosAutomaticIndexingBuilder
override this.Except : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.CosmosAutomaticIndexingBuilder
Public Overridable Function Except (path As String) As CosmosAutomaticIndexingBuilder
Parameters
- path
- String
The path to exclude from indexing.
Returns
The same builder instance so that multiple calls can be chained.
Remarks
See Indexing policies in Azure Cosmos DB for more information.