EvaluationRules.Get 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 |
|---|---|
| Get(String, RequestOptions) |
[Protocol Method] Get an evaluation rule.
|
| Get(String, CancellationToken) |
Get an evaluation rule. |
Get(String, RequestOptions)
- Source:
- EvaluationRules.cs
[Protocol Method] Get an evaluation rule.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.ClientResult Get(string id, System.ClientModel.Primitives.RequestOptions options);
abstract member Get : string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.Get : string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function Get (id As String, options As RequestOptions) As ClientResult
Parameters
- id
- String
Unique identifier for the evaluation rule.
- options
- RequestOptions
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
id is null.
id is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
Get(String, CancellationToken)
- Source:
- EvaluationRules.cs
Get an evaluation rule.
public virtual System.ClientModel.ClientResult<Azure.AI.Projects.EvaluationRule> Get(string id, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.EvaluationRule>
override this.Get : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.EvaluationRule>
Public Overridable Function Get (id As String, Optional cancellationToken As CancellationToken = Nothing) As ClientResult(Of EvaluationRule)
Parameters
- id
- String
Unique identifier for the evaluation rule.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
id is null.
id is an empty string, and was expected to be non-empty.
Service returned a non-success status code.