Click or drag to resize

ResourceManagementClientDeleteResource Method (Guid)

Deletes the specified resource from the resource management service

Namespace:  Lithnet.ResourceManagement.Client
Assembly:  Lithnet.ResourceManagement.Client (in Lithnet.ResourceManagement.Client.dll) Version: 1.0.6435.24467
Syntax
public void DeleteResource(
	Guid id
)

Parameters

id
Type: SystemGuid
The ID of the object to delete
Examples
The following example shows how to delete an object using a known GUID
Example
public void DeleteResourceByGuid()
{
    ResourceManagementClient client = new ResourceManagementClient();

    // Get the object to delete
    Guid objectID = new Guid("2ec7fcd4-8461-4d0b-8e76-3192c12ca48d");

    try
    {
        client.DeleteResource(objectID);
    }
    catch (Exception)
    {
        // An error occurred while deleting the resource
        throw;
    }
}
See Also