你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DeviceManagementClient.DeleteDeploymentForDeviceClassSubgroup 方法

定义

删除设备类子组部署。

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

参数

groupId
String

组标识符。

deviceClassId
String

设备类标识符。

deploymentId
String

部署标识符。

context
RequestContext

请求上下文,可以基于每个调用替代客户端管道的默认行为。

返回

从服务返回的响应。

例外

groupIddeviceClassIddeploymentId 为 null。

groupIddeviceClassIddeploymentId 是空字符串,预期为非空。

服务返回了非成功状态代码。

示例

此示例演示如何使用所需参数调用 DeleteDeploymentForDeviceClassSubgroup。

var credential = new DefaultAzureCredential();
var endpoint = new Uri("<https://my-service.azure.com>");
var client = new DeviceManagementClient(endpoint, "<instanceId>", credential);

Response response = client.DeleteDeploymentForDeviceClassSubgroup("<groupId>", "<deviceClassId>", "<deploymentId>");
Console.WriteLine(response.Status);

适用于