次の方法で共有


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

定義

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

public virtual Azure.Response Delete (string partyId, string prescriptionMapId, Azure.RequestContext context = default);
abstract member Delete : string * string * Azure.RequestContext -> Azure.Response
override this.Delete : string * string * Azure.RequestContext -> Azure.Response
Public Overridable Function Delete (partyId As String, prescriptionMapId As String, Optional context As RequestContext = Nothing) As Response

パラメーター

partyId
String

パーティの ID。

prescriptionMapId
String

処方箋マップの ID。

context
RequestContext

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

戻り値

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

例外

partyId または prescriptionMapId が null です。

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

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

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

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

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

適用対象