ResourceManagementClientDeleteResources Method (IEnumerableUniqueIdentifier) |
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<UniqueIdentifier> resourceIDs
)
Public Sub DeleteResources (
resourceIDs As IEnumerable(Of UniqueIdentifier)
)
public:
void DeleteResources(
IEnumerable<UniqueIdentifier^>^ resourceIDs
)
Parameters
- resourceIDs
- Type: System.Collections.GenericIEnumerableUniqueIdentifier
A collection of references 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 gets all the members of a set, and passes the reference attribute containing the objects to the delete function
public void DeleteSetMembers()
{
ResourceManagementClient client = new ResourceManagementClient();
ResourceObject resource = client.GetResourceByKey("Set", "DisplayName", "UsersToDelete");
try
{
client.DeleteResources(resource.Attributes["ComputedMember"].ReferenceValues);
}
catch (Exception)
{
throw;
}
}
See Also