SearchModelFactory.KnowledgeBaseReference 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 |
|---|---|
| KnowledgeBaseReference(String, String, Int32, IDictionary<String,BinaryData>, Nullable<Single>) |
Base type for references. Please note this is the abstract base class. The derived classes available for instantiation are: KnowledgeBaseSearchIndexReference, KnowledgeBaseAzureBlobReference, KnowledgeBaseIndexedOneLakeReference, and KnowledgeBaseWebReference. |
| KnowledgeBaseReference(String, String, Int32, IReadOnlyDictionary<String,Object>, Nullable<Single>) |
Initializes a new instance of KnowledgeBaseReference. |
KnowledgeBaseReference(String, String, Int32, IDictionary<String,BinaryData>, Nullable<Single>)
- Source:
- SearchModelFactory.cs
Base type for references. Please note this is the abstract base class. The derived classes available for instantiation are: KnowledgeBaseSearchIndexReference, KnowledgeBaseAzureBlobReference, KnowledgeBaseIndexedOneLakeReference, and KnowledgeBaseWebReference.
public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference KnowledgeBaseReference(string type = default, string id = default, int activitySource = 0, System.Collections.Generic.IDictionary<string,BinaryData> sourceData = default, float? rerankerScore = default);
static member KnowledgeBaseReference : string * string * int * System.Collections.Generic.IDictionary<string, BinaryData> * Nullable<single> -> Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference
Public Shared Function KnowledgeBaseReference (Optional type As String = Nothing, Optional id As String = Nothing, Optional activitySource As Integer = 0, Optional sourceData As IDictionary(Of String, BinaryData) = Nothing, Optional rerankerScore As Nullable(Of Single) = Nothing) As KnowledgeBaseReference
Parameters
- type
- String
The type of the reference.
- id
- String
The ID of the reference.
- activitySource
- Int32
The source activity ID for the reference.
- sourceData
- IDictionary<String,BinaryData>
The source data for the reference.
Returns
A new KnowledgeBaseReference instance for mocking.
Applies to
KnowledgeBaseReference(String, String, Int32, IReadOnlyDictionary<String,Object>, Nullable<Single>)
- Source:
- SearchModelFactory.cs
Initializes a new instance of KnowledgeBaseReference.
public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference KnowledgeBaseReference(string type = default, string id = default, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary<string,object> sourceData = default, float? rerankerScore = default);
static member KnowledgeBaseReference : string * string * int * System.Collections.Generic.IReadOnlyDictionary<string, obj> * Nullable<single> -> Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference
Public Shared Function KnowledgeBaseReference (Optional type As String = Nothing, Optional id As String = Nothing, Optional activitySource As Integer = 0, Optional sourceData As IReadOnlyDictionary(Of String, Object) = Nothing, Optional rerankerScore As Nullable(Of Single) = Nothing) As KnowledgeBaseReference
Parameters
- type
- String
The type of the reference.
- id
- String
The ID of the reference.
- activitySource
- Int32
The source activity ID for the reference.
- sourceData
- IReadOnlyDictionary<String,Object>
Dictionary of <any>.
Returns
A new KnowledgeBaseReference instance for mocking.