Share via


AIProjectDatasetsOperations.GetDataset Method

Definition

Overloads

GetDataset(String, String, RequestOptions)

[Protocol Method] Get the specific version of the DatasetVersion. The service returns 404 Not Found error if the DatasetVersion does not exist.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDataset(String, String, CancellationToken)

Get the specific version of the DatasetVersion. The service returns 404 Not Found error if the DatasetVersion does not exist.

GetDataset(String, String, RequestOptions)

Source:
AIProjectDatasetsOperations.cs

[Protocol Method] Get the specific version of the DatasetVersion. The service returns 404 Not Found error if the DatasetVersion does not exist.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.ClientResult GetDataset(string name, string version, System.ClientModel.Primitives.RequestOptions options);
abstract member GetDataset : string * string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.GetDataset : string * string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function GetDataset (name As String, version As String, options As RequestOptions) As ClientResult

Parameters

name
String

The name of the resource.

version
String

The specific version id of the DatasetVersion to retrieve.

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

name or version is null.

name or version is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetDataset(String, String, CancellationToken)

Source:
AIProjectDatasetsOperations.cs

Get the specific version of the DatasetVersion. The service returns 404 Not Found error if the DatasetVersion does not exist.

public virtual System.ClientModel.ClientResult<Azure.AI.Projects.AIProjectDataset> GetDataset(string name, string version, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDataset : string * string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.AIProjectDataset>
override this.GetDataset : string * string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.AIProjectDataset>
Public Overridable Function GetDataset (name As String, version As String, Optional cancellationToken As CancellationToken = Nothing) As ClientResult(Of AIProjectDataset)

Parameters

name
String

The name of the resource.

version
String

The specific version id of the DatasetVersion to retrieve.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

name or version is null.

name or version is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to