ProjectAgentSkills.GetSkillContent 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 |
|---|---|
| GetSkillContent(String, String, CancellationToken) |
Downloads a skill package, save it to file and return as a Binary data. |
| GetSkillContent(String, CancellationToken) |
Downloads the zip content for the default version of a skill. |
| GetSkillContent(String, RequestOptions) |
[Protocol Method] Downloads the zip content for the default version of a skill.
|
GetSkillContent(String, String, CancellationToken)
- Source:
- ProjectAgentSkills.cs
Downloads a skill package, save it to file and return as a Binary data.
public virtual System.ClientModel.ClientResult<BinaryData> GetSkillContent(string skillName, string localPath, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSkillContent : string * string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<BinaryData>
override this.GetSkillContent : string * string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<BinaryData>
Public Overridable Function GetSkillContent (skillName As String, localPath As String, Optional cancellationToken As CancellationToken = Nothing) As 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.
Applies to
GetSkillContent(String, CancellationToken)
- Source:
- ProjectAgentSkills.cs
Downloads the zip content for the default version of a skill.
public virtual System.ClientModel.ClientResult<BinaryData> GetSkillContent(string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSkillContent : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<BinaryData>
override this.GetSkillContent : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<BinaryData>
Public Overridable Function GetSkillContent (name As String, Optional cancellationToken As CancellationToken = Nothing) As 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
GetSkillContent(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.ClientModel.ClientResult GetSkillContent(string name, System.ClientModel.Primitives.RequestOptions options);
abstract member GetSkillContent : string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.GetSkillContent : string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function GetSkillContent (name As String, options As RequestOptions) As 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.