ResourceManagementClientDeleteResources Method (IEnumerableGuid) |
Deletes the specified resources from the resource management service as a single composite operation
Namespace:
Lithnet.ResourceManagement.Client
Assembly:
Lithnet.ResourceManagement.Client (in Lithnet.ResourceManagement.Client.dll) Version: 1.0.6435.24467
Syntaxpublic void DeleteResources(
IEnumerable<Guid> resourceIDs
)
Public Sub DeleteResources (
resourceIDs As IEnumerable(Of Guid)
)
public:
void DeleteResources(
IEnumerable<Guid>^ resourceIDs
)
Parameters
- resourceIDs
- Type: System.Collections.GenericIEnumerableGuid
A collection of object IDs in GUID format to delete to delete
Remarks
Note that when using this method, the objects are passed to the Resource Management Service in a single request. In the Request History in the portal, this will appear as a single request, and the individual object IDs that were deleted will not be visible.
Examples
The following example deletes a set of objects using a list of known GUIDs
public void DeleteResourcesByGuid()
{
ResourceManagementClient client = new ResourceManagementClient();
List<Guid> objectsToDelete = new List<Guid>();
objectsToDelete.Add(new Guid("71fa5e6b-3f79-4e62-83fe-e6c695edf918"));
objectsToDelete.Add(new Guid("d2fbed50-caa1-4721-ba77-d0ed51c7fdf7"));
objectsToDelete.Add(new Guid("adf184ba-aa6d-4691-aea6-55aeee57ea7a"));
try
{
client.DeleteResources(objectsToDelete);
}
catch (Exception)
{
throw;
}
}
See Also