IndexingParametersExtensions.ExcludeFileNameExtensions(IndexingParameters, String[]) Method

Definition

Specifies that the indexer will not index blobs with the file name extensions you specify. Each string is a file extensions with a leading dot. For example, ".pdf", ".docx", etc. If you pass the same file extension to this method and IndexFileNameExtensions, blobs with that extension will be excluded from indexing (that is, this method takes precedence). See for details.

public static Microsoft.Azure.Search.Models.IndexingParameters ExcludeFileNameExtensions (this Microsoft.Azure.Search.Models.IndexingParameters parameters, params string[] extensions);
static member ExcludeFileNameExtensions : Microsoft.Azure.Search.Models.IndexingParameters * string[] -> Microsoft.Azure.Search.Models.IndexingParameters
<Extension()>
Public Function ExcludeFileNameExtensions (parameters As IndexingParameters, ParamArray extensions As String()) As IndexingParameters

Parameters

parameters
IndexingParameters

IndexingParameters to configure.

extensions
String[]

File extensions to exclude from indexing.

Returns

The IndexingParameters instance.

Remarks

This option only applies to indexers that index Azure Blob Storage.

Applies to