ProjectAgentSkills.GetSkillVersionContentAsync Method

Definition

Overloads

Name Description
GetSkillVersionContentAsync(String, String, RequestOptions)

[Protocol Method] Download the zip content for a specific version of a skill.

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

Download the zip content for a specific version of a skill.

GetSkillVersionContentAsync(String, String, RequestOptions)

Source:
ProjectAgentSkills.cs

[Protocol Method] Download the zip content for a specific version of a skill.

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

Parameters

name
String

The name of the skill.

version
String

The version to download content for.

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

GetSkillVersionContentAsync(String, String, CancellationToken)

Source:
ProjectAgentSkills.cs

Download the zip content for a specific version of a skill.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<BinaryData>> GetSkillVersionContentAsync(string name, string version, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSkillVersionContentAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<BinaryData>>
override this.GetSkillVersionContentAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<BinaryData>>
Public Overridable Function GetSkillVersionContentAsync (name As String, version As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of BinaryData))

Parameters

name
String

The name of the skill.

version
String

The version to download content for.

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