IRDSAccounts::Delete Method
Description
The Delete method removes an RDS account from the collection.
Syntax
[id(0x000000CC)]
HRESULT _stdcall Delete(
[in] BSTR UserName,
[in] VARIANT_BOOL DeleteAccount,
[out, retval] VARIANT_BOOL* Value
);
Parameters
| Parameter | Type | Direction | Description |
|---|---|---|---|
UserName |
BSTR | [in] | The name of the user account to be removed |
DeleteAccount |
VARIANT_BOOL | [in] | Flag indicating whether to delete the associated account |
Value |
VARIANT_BOOL* | [out, retval] | Returns the result of the deletion operation |
Return Value
HRESULT indicating success or failure of the operation, with a boolean return value.