Condividi tramite


SearchModelFactory.SearchIndexerDataSourceConnection Method

Definition

public static Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceConnection SearchIndexerDataSourceConnection(string name, string description, Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceType type, string connectionString, Azure.Search.Documents.Indexes.Models.SearchIndexerDataContainer container, Azure.Search.Documents.Indexes.Models.DataChangeDetectionPolicy dataChangeDetectionPolicy, Azure.Search.Documents.Indexes.Models.DataDeletionDetectionPolicy dataDeletionDetectionPolicy, string etag, Azure.Search.Documents.Indexes.Models.SearchResourceEncryptionKey encryptionKey, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData);
public static Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceConnection SearchIndexerDataSourceConnection(string name = default, string description = default, Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceType type = default, string connectionString = default, Azure.Search.Documents.Indexes.Models.SearchIndexerDataContainer container = default, Azure.Search.Documents.Indexes.Models.DataChangeDetectionPolicy dataChangeDetectionPolicy = default, Azure.Search.Documents.Indexes.Models.DataDeletionDetectionPolicy dataDeletionDetectionPolicy = default, string etag = default, Azure.Search.Documents.Indexes.Models.SearchResourceEncryptionKey encryptionKey = default, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData = default);
static member SearchIndexerDataSourceConnection : string * string * Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceType * string * Azure.Search.Documents.Indexes.Models.SearchIndexerDataContainer * Azure.Search.Documents.Indexes.Models.DataChangeDetectionPolicy * Azure.Search.Documents.Indexes.Models.DataDeletionDetectionPolicy * string * Azure.Search.Documents.Indexes.Models.SearchResourceEncryptionKey * System.Collections.Generic.IDictionary<string, BinaryData> -> Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceConnection
Public Shared Function SearchIndexerDataSourceConnection (name As String, description As String, type As SearchIndexerDataSourceType, connectionString As String, container As SearchIndexerDataContainer, dataChangeDetectionPolicy As DataChangeDetectionPolicy, dataDeletionDetectionPolicy As DataDeletionDetectionPolicy, etag As String, encryptionKey As SearchResourceEncryptionKey, serializedAdditionalRawData As IDictionary(Of String, BinaryData)) As SearchIndexerDataSourceConnection
Public Shared Function SearchIndexerDataSourceConnection (Optional name As String = Nothing, Optional description As String = Nothing, Optional type As SearchIndexerDataSourceType = Nothing, Optional connectionString As String = Nothing, Optional container As SearchIndexerDataContainer = Nothing, Optional dataChangeDetectionPolicy As DataChangeDetectionPolicy = Nothing, Optional dataDeletionDetectionPolicy As DataDeletionDetectionPolicy = Nothing, Optional etag As String = Nothing, Optional encryptionKey As SearchResourceEncryptionKey = Nothing, Optional serializedAdditionalRawData As IDictionary(Of String, BinaryData) = Nothing) As SearchIndexerDataSourceConnection

Parameters

name
String

The name of the datasource.

description
String

The description of the datasource.

type
SearchIndexerDataSourceType

The type of the datasource.

connectionString
String

Credentials for the datasource.

container
SearchIndexerDataContainer

The data container for the datasource.

dataChangeDetectionPolicy
DataChangeDetectionPolicy

The data change detection policy for the datasource. The available derived classes include HighWaterMarkChangeDetectionPolicy and SqlIntegratedChangeTrackingPolicy.

dataDeletionDetectionPolicy
DataDeletionDetectionPolicy

The data deletion detection policy for the datasource. The available derived classes include SoftDeleteColumnDeletionDetectionPolicy.

etag
String

The ETag of the data source.

encryptionKey
SearchResourceEncryptionKey

A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your datasource definition when you want full assurance that no one, not even Microsoft, can decrypt your data source definition. Once you have encrypted your data source definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your datasource definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019.

serializedAdditionalRawData
IDictionary<String,BinaryData>

Keeps track of any properties unknown to the library.

Returns

Applies to