次の方法で共有


TillageData.DeleteAsync(String, String, RequestContext) メソッド

定義

特定のパーティの指定された tillage データ リソースを削除します。

public virtual System.Threading.Tasks.Task<Azure.Response> DeleteAsync (string partyId, string tillageDataId, Azure.RequestContext context = default);
abstract member DeleteAsync : string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteAsync : string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteAsync (partyId As String, tillageDataId As String, Optional context As RequestContext = Nothing) As Task(Of Response)

パラメーター

partyId
String

関連付けられたパーティ リソースの ID。

tillageDataId
String

耕分データの ID。

context
RequestContext

要求コンテキスト。これは、呼び出しごとにクライアント パイプラインの既定の動作をオーバーライドできます。

戻り値

サービスから返された応答。

例外

partyId または tillageDataId が null です。

partyId または tillageDataId が空の文字列であり、空でないと想定されていました。

サービスから成功以外の状態コードが返されました。

このサンプルでは、必要なパラメーターを使用して DeleteAsync を呼び出す方法を示します。

var credential = new DefaultAzureCredential();
var client = new FarmBeatsClient(credential).GetTillageDataClient(<2022-11-01-preview>);

Response response = await client.DeleteAsync("<partyId>", "<tillageDataId>");
Console.WriteLine(response.Status);

適用対象