QuickDataSearchFilesOnly
- Last UpdatedJan 05, 2022
- 1 minute read
Checks whether there are any files on DashBoard site for given criteria and for given searchable object type.
Syntax
Public static bool QuickDataSearchFilesOnly (
string strURL,
string strCriteria,
string strObjectTypeHandle,
out string strErrorMessage,
out bool bHasFiles
)
Parameters
|
strURL |
The dashboard URL to be queried for getting data. |
|
strCriteria |
Tag to be searched. |
|
strObjectTypeHandle |
Handle of object type to search data in. |
|
strErrorMessage |
When this method returns, contains the error message, if fails otherwise, contains String.Empty. |
|
bHasFiles |
When this method returns, contains true, if tag has any files associated with it on DashBoard otherwise, contains false. |
Return value
true if success; otherwise, false.
Example
string strMessage = string.Empty;
bool bHasAssociatedFiles = false;
if (QuickDataSearchFilesOnly (
"http://inhyzvms8r09:16000/",
"J-9002A",
" LOGICAL (& OTHER PHYSICAL) OBJECT",
out strMessage, out bHasAssociatedFiles))
{
Console.WriteLine("Has Associated Files - {0}", bHasAssociatedFiles.ToString());
}
else
{
Console.WriteLine("Failed - Error - {0}", strMessage);
}