ResourceManagementClient.DeleteResource Method (String) |
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
Syntaxpublic void DeleteResource(
string id
)
Public Sub DeleteResource (
id As String
)
public:
void DeleteResource(
String^ id
)
Parameters
- id
- Type: System.String
The ID of the object to delete, in GUID format, with or without the urn: prefix
Examples
The following example shows how to delete an object using a string representation of a GUID
public void DeleteResourceByString()
{
ResourceManagementClient client = new ResourceManagementClient();
try
{
client.DeleteResource("2ec7fcd4-8461-4d0b-8e76-3192c12ca48d");
}
catch (Exception)
{
throw;
}
}
See Also