1. ICommandsClient

Interface ICommandsClient

Version:
日本語翻訳に関する免責事項

このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。

Contains functionality to execute commands in Sitecore Content Hub.

Namespace: Stylelabs.M.Sdk.Clients
Assembly: Stylelabs.M.Sdk.dll
Syntax
public interface ICommandsClient

Methods

ExecuteCommandAsync(String, String, JObject)

Executes an Sitecore Content Hub command.

Declaration
Task<JToken> ExecuteCommandAsync(string namespace, string command, JObject arguments = null)
Parameters
TypeNameDescription
System.Stringnamespace

The name of the folder containing the command.

System.Stringcommand

The name of the command.

JObjectarguments

The arguments of the command. If the command has no arguments, null can be specified.

Returns
TypeDescription
Task<JToken>

The result of the command. If the command has no result, null is returned.

Exceptions
TypeCondition
NotFoundException

The specified command cannot be found.

この記事を改善するための提案がある場合は、 お知らせください!