CosmosAutomaticIndexingBuilder<TEntity>.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<TEntity> Except(string path);
override this.Except : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.CosmosAutomaticIndexingBuilder<'Entity (requires 'Entity : null)>
Public Overridable Function Except (path As String) As CosmosAutomaticIndexingBuilder(Of TEntity)
Parameters
- path
- String
The path to exclude from indexing.
Returns
The same builder instance so that multiple calls can be chained.