AffinityGroupOperationsExtensions.Delete Method
Deletes an affinity group from the specified subscription.
Namespace: Microsoft.WindowsAzure.Management
Assembly: Microsoft.WindowsAzure.Management (in Microsoft.WindowsAzure.Management.dll)
Usage
'Usage
Dim operations As IAffinityGroupOperations
Dim affinityGroupName As String
Dim returnValue As AzureOperationResponse
returnValue = AffinityGroupOperationsExtensions.Delete(operations, affinityGroupName)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Delete ( _
operations As IAffinityGroupOperations, _
affinityGroupName As String _
) As AzureOperationResponse
[ExtensionAttribute]
public static AzureOperationResponse Delete (
IAffinityGroupOperations operations,
string affinityGroupName
)
[ExtensionAttribute]
public:
static AzureOperationResponse^ Delete (
IAffinityGroupOperations^ operations,
String^ affinityGroupName
)
/** @attribute ExtensionAttribute() */
public static AzureOperationResponse Delete (
IAffinityGroupOperations operations,
String affinityGroupName
)
ExtensionAttribute
public static function Delete (
operations : IAffinityGroupOperations,
affinityGroupName : String
) : AzureOperationResponse
Parameters
- operations
The IAffinityGroupOperations object.
- affinityGroupName
The name of the affinity group to delete.
Return Value
An OperationResponse object that includes an HTTP status code and request ID.
Remarks
Before you delete an affinity group, you must modify or delete any resources that currently use it. An affinity group cannot be deleted as long as it is associated with any resources.
For more information about deleting affinity groups, see the following resources:
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
AffinityGroupOperationsExtensions Class
AffinityGroupOperationsExtensions Members
Microsoft.WindowsAzure.Management Namespace