Asynchronously deletes assets and subbins

Namespace:  GrassValley.Mseries.MediaMgr
Assembly:  GrassValley.Mseries.MediaMgr (in GrassValley.Mseries.MediaMgr.dll) Version: 1.0.0.0

Syntax

C#
public int InvokeDeleteAll(
	string uri
)
Visual Basic (Declaration)
Public Function InvokeDeleteAll ( _
	uri As String _
) As Integer
Visual C++
public:
virtual int InvokeDeleteAll(
	String^ uri
) sealed

Parameters

uri
Type: System..::.String
the bin uri

Return Value

async cookie

Implements

IMediaMgr3..::.InvokeDeleteAll(String)

Examples

Delete all assets and sub-bins in V:/alpha/beta
CopyC#
string binUri = "bin/cmf//localhost/V:/alpha/beta";
int asyncCookie = mediaMgr.InvokeDeleteAll(binUri);
// wait until operation is complete
int percentComplete = 0;
string currentUri;
int errorCount;
do
{
// get status of deletes
mediaMgr.GetAsyncStatus(asyncCookie, out percentComplete, out currentUri, out errorCount);
Thread.Sleep(100);
}
while (percentComplete < 100);
// close the async operation
object errorList;
object errorUriList;
mediaMgr.CloseAsyncOp(asyncCookie, out errorList, out errorUriList);

See Also