ICatAdm::FindFirstScope method
[Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.]
Initializes scope enumeration for a catalog and checks to see whether a catalog exists.
Syntax
HRESULT FindFirstScope(
[out, retval] VARIANT_BOOL *pfFound
);
Parameters
-
pfFound [out, retval]
-
VARIANT_TRUE if a scope was found, VARIANT_FALSE otherwise.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
If a scope exists, use GetScope to retrieve the scope object.
Examples
' Find the first scope
If (objCatAdm.FindFirstScope( ) ) Then
Set objScopeAdm = objCatAdm.GetScope()
' Use it
' Free when finished
Set objScopeAdm = Nothing
End If
Requirements
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
End of client support |
Windows 7 |
End of server support |
Windows Server 2008 R2 |
DLL |
|
See also