SearchModelFactory.SearchAlias 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.
Overloads
| Name | Description |
|---|---|
| SearchAlias(String, IEnumerable<String>, String) |
Represents an index alias, which describes a mapping from the alias name to an index. The alias name can be used in place of the index name for supported operations. |
| SearchAlias(String, IList<String>, String, IDictionary<String,BinaryData>) |
Initializes a new instance of SearchAlias(String, IList<String>, String, IDictionary<String,BinaryData>). |
SearchAlias(String, IEnumerable<String>, String)
- Source:
- SearchModelFactory.cs
Represents an index alias, which describes a mapping from the alias name to an index. The alias name can be used in place of the index name for supported operations.
public static Azure.Search.Documents.Indexes.Models.SearchAlias SearchAlias(string name = default, System.Collections.Generic.IEnumerable<string> indexes = default, string etag = default);
static member SearchAlias : string * seq<string> * string -> Azure.Search.Documents.Indexes.Models.SearchAlias
Public Shared Function SearchAlias (Optional name As String = Nothing, Optional indexes As IEnumerable(Of String) = Nothing, Optional etag As String = Nothing) As SearchAlias
Parameters
- name
- String
The name of the alias.
- indexes
- IEnumerable<String>
The name of the index this alias maps to. Only one index name may be specified.
- etag
- String
The ETag of the alias.
Returns
A new SearchAlias instance for mocking.
Applies to
SearchAlias(String, IList<String>, String, IDictionary<String,BinaryData>)
- Source:
- SearchModelFactory.cs
Initializes a new instance of SearchAlias(String, IList<String>, String, IDictionary<String,BinaryData>).
public static Azure.Search.Documents.Indexes.Models.SearchAlias SearchAlias(string name = default, System.Collections.Generic.IList<string> indexes = default, string etag = default, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData = default);
static member SearchAlias : string * System.Collections.Generic.IList<string> * string * System.Collections.Generic.IDictionary<string, BinaryData> -> Azure.Search.Documents.Indexes.Models.SearchAlias
Public Shared Function SearchAlias (Optional name As String = Nothing, Optional indexes As IList(Of String) = Nothing, Optional etag As String = Nothing, Optional serializedAdditionalRawData As IDictionary(Of String, BinaryData) = Nothing) As SearchAlias
Parameters
- name
- String
The name of the alias.
The name of the index this alias maps to. Only one index name may be specified.
- etag
- String
The ETag of the alias.
- serializedAdditionalRawData
- IDictionary<String,BinaryData>
Keeps track of any properties unknown to the library.