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#
int InvokeDeleteAll(
	string uri
)
Visual Basic (Declaration)
Function InvokeDeleteAll ( _
	uri As String _
) As Integer
Visual C++
int InvokeDeleteAll(
	String^ uri
)

Parameters

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

Return Value

async cookie

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