Delen via


DataSource Constructors

Definition

Overloads

DataSource()

Initializes a new instance of the DataSource class.

DataSource(String, DataSourceType, DataSourceCredentials, DataContainer, String, DataChangeDetectionPolicy, DataDeletionDetectionPolicy, String)

Initializes a new instance of the DataSource class.

DataSource()

Source:
DataSource.cs

Initializes a new instance of the DataSource class.

public DataSource ();
Public Sub New ()

Applies to

DataSource(String, DataSourceType, DataSourceCredentials, DataContainer, String, DataChangeDetectionPolicy, DataDeletionDetectionPolicy, String)

Source:
DataSource.cs

Initializes a new instance of the DataSource class.

public DataSource (string name, Microsoft.Azure.Search.Models.DataSourceType type, Microsoft.Azure.Search.Models.DataSourceCredentials credentials, Microsoft.Azure.Search.Models.DataContainer container, string description = default, Microsoft.Azure.Search.Models.DataChangeDetectionPolicy dataChangeDetectionPolicy = default, Microsoft.Azure.Search.Models.DataDeletionDetectionPolicy dataDeletionDetectionPolicy = default, string eTag = default);
new Microsoft.Azure.Search.Models.DataSource : string * Microsoft.Azure.Search.Models.DataSourceType * Microsoft.Azure.Search.Models.DataSourceCredentials * Microsoft.Azure.Search.Models.DataContainer * string * Microsoft.Azure.Search.Models.DataChangeDetectionPolicy * Microsoft.Azure.Search.Models.DataDeletionDetectionPolicy * string -> Microsoft.Azure.Search.Models.DataSource
Public Sub New (name As String, type As DataSourceType, credentials As DataSourceCredentials, container As DataContainer, Optional description As String = Nothing, Optional dataChangeDetectionPolicy As DataChangeDetectionPolicy = Nothing, Optional dataDeletionDetectionPolicy As DataDeletionDetectionPolicy = Nothing, Optional eTag As String = Nothing)

Parameters

name
String

The name of the datasource.

type
DataSourceType

The type of the datasource. Possible values include: 'azuresql', 'cosmosdb', 'azureblob', 'azuretable'

credentials
DataSourceCredentials

Credentials for the datasource.

container
DataContainer

The data container for the datasource.

description
String

The description of the datasource.

dataChangeDetectionPolicy
DataChangeDetectionPolicy

The data change detection policy for the datasource.

dataDeletionDetectionPolicy
DataDeletionDetectionPolicy

The data deletion detection policy for the datasource.

eTag
String

The ETag of the DataSource.

Applies to