次の方法で共有


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

定義

特定のパーティの指定された処方マップ リソースを削除します。

public virtual System.Threading.Tasks.Task<Azure.Response> DeleteAsync (string partyId, string prescriptionMapId, 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, prescriptionMapId As String, Optional context As RequestContext = Nothing) As Task(Of Response)

パラメーター

partyId
String

パーティの ID。

prescriptionMapId
String

処方箋マップの ID。

context
RequestContext

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

戻り値

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

例外

partyId または prescriptionMapId が null です。

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

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

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

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

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

適用対象