Selects all bins in a volume
Namespace:
GrassValley.Mseries.MediaMgrAssembly: GrassValley.Mseries.MediaMgr (in GrassValley.Mseries.MediaMgr.dll) Version: 1.0.0.0
Syntax
C# |
---|
int SelectAllBins( string volume, string whereClause, out int count ) |
Visual Basic (Declaration) |
---|
Function SelectAllBins ( _ volume As String, _ whereClause As String, _ <OutAttribute> ByRef count As Integer _ ) As Integer |
Visual C++ |
---|
int SelectAllBins( String^ volume, String^ whereClause, [OutAttribute] int% count ) |
Parameters
- volume
- Type: System..::.String
The volume or dataset
- whereClause
- Type: System..::.String
where clause ("" for default)
- count
- Type:
System..::.Int32
%
The number of bins returned
Return Value
cookie used for GetXmlResults or GetResultProperty calls to get resultsExamples
Get all sub-bins of volume V:
CopyC#
// select all bins under the V: volume int count = 0; int cookie = mediaMgr.SelectAllBins("V:", "", out count); // get an XML document with all results string xmlData = ""; mediaMgr.GetXmlResults(cookie, 0, 256, ref count, out xmlData); Console.WriteLine(xmlData); // make sure you close your results! mediaMgr.CloseResults(cookie); // this returns: <xml version="1.0" encoding="UTF-8" /> <Select Query="" StartIndex="0"> <Schema xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes" name="Schema1"> <AttributeType name="MachineName" dt:type="string" /> <AttributeType name="DatasetName" dt:type="string" /> <AttributeType name="GroupName" dt:type="string" /> <AttributeType name="GroupId" dt:type="string" /> <AttributeType name="Created" dt:type="dateTime" /> <ElementType name="Group"> <attribute type="MachineName" /> <attribute type="DatasetName" /> <attribute type="GroupName" /> <attribute type="GroupId" /> <attribute type="Created" /> </ElementType> <ElementType name="Data"> <element type="Group" /> </ElementType> </Schema> <ns:Data xmlns:ns="x-schema:#Schema1"> <ns:Group MachineName="summit_1" GroupName="default" DatasetName="V:" GroupId="754306ca50e24ce588d809565d1221d3" Created="2009-02-06T18:52:14.000" /> <ns:Group MachineName="summit_1" GroupName="Recycle Bin" DatasetName="V:" GroupId="e66a20d149e74d2a83906c93df72064c" Created="2009-02-06T18:52:14.000" /> <ns:Group MachineName="summit_1" GroupName="default/alpha" DatasetName="V:" GroupId="e197844b07114445b8db2a385e6ab32c" Created="2009-08-04T12:19:43.000" /> <ns:Group MachineName="summit_1" GroupName="default/alpha/beta" DatasetName="V:" GroupId="4a13bcf8fc8a43b78c4b313df4988992" Created="2009-08-04T12:19:49.000" /> </ns:Data> </Select>