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

VirtualMachineOSImageOperationsExtensions.Delete 方法

定义

删除 OS 映像操作会从映像存储库中删除指定的 OS 映像。 (有关详细信息,请参阅 http://msdn.microsoft.com/en-us/library/windowsazure/jj157203.aspx)

public static Microsoft.Azure.AzureOperationResponse Delete (this Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperations operations, string imageName, bool deleteFromStorage);
static member Delete : Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperations * string * bool -> Microsoft.Azure.AzureOperationResponse
<Extension()>
Public Function Delete (operations As IVirtualMachineOSImageOperations, imageName As String, deleteFromStorage As Boolean) As AzureOperationResponse

参数

operations
IVirtualMachineOSImageOperations

对 Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOSImageOperations 的引用。

imageName
String

必需。 要删除的图像的名称。

deleteFromStorage
Boolean

必需。 指定还应从存储区中删除的映像的源 blob。

返回

Microsoft.Azure.AzureOperationResponse

标准服务响应,包括 HTTP 状态代码和请求 ID。

适用于