ProjectAgentSkills.GetSkillContentAsync 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 |
|---|---|
| GetSkillContentAsync(String, RequestOptions) |
[Protocol Method] Downloads the zip content for the default version of a skill.
|
| GetSkillContentAsync(String, CancellationToken) |
Downloads the zip content for the default version of a skill. |
| GetSkillContentAsync(String, String, CancellationToken) |
Downloads a skill package, save it to file and return as a Binary data. |
GetSkillContentAsync(String, RequestOptions)
- Source:
- ProjectAgentSkills.cs
[Protocol Method] Downloads the zip content for the default 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> GetSkillContentAsync(string name, System.ClientModel.Primitives.RequestOptions options);
abstract member GetSkillContentAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.GetSkillContentAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function GetSkillContentAsync (name As String, options As RequestOptions) As Task(Of ClientResult)
Parameters
- name
- String
The name of the skill.
- 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 is null.
name is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetSkillContentAsync(String, CancellationToken)
- Source:
- ProjectAgentSkills.cs
Downloads the zip content for the default version of a skill.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<BinaryData>> GetSkillContentAsync(string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSkillContentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<BinaryData>>
override this.GetSkillContentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<BinaryData>>
Public Overridable Function GetSkillContentAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of BinaryData))
Parameters
- name
- String
The name of the skill.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
name is null.
name is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetSkillContentAsync(String, String, CancellationToken)
- Source:
- ProjectAgentSkills.cs
Downloads a skill package, save it to file and return as a Binary data.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<BinaryData>> GetSkillContentAsync(string skillName, string localPath, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSkillContentAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<BinaryData>>
override this.GetSkillContentAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<BinaryData>>
Public Overridable Function GetSkillContentAsync (skillName As String, localPath As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of BinaryData))
Parameters
- skillName
- String
The unique name of the skill.
- localPath
- String
The path to save the skill content to.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
skillName or localPath is null.
skillName or localPath is an empty string, and was expected to be non-empty.
Service returned a non-success status code.