ContentCollectionCollection.ClearCollection Method
Deletes all the content collection documents from the index without removing the content collection.
Namespace: Microsoft.SharePoint.Search.Extended.Administration.Content
Assembly: Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)
Syntax
'Declaration
Sub ClearCollection ( _
collection As ContentCollection _
)
'Usage
Dim instance As ContentCollectionCollection
Dim collection As ContentCollection
instance.ClearCollection(collection)
void ClearCollection(
ContentCollection collection
)
Parameters
collection
Type: Microsoft.SharePoint.Search.Extended.Administration.Content.ContentCollectionThe content collection to clear.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The [collection] is [null]. |
AdminException | The clear operation.fails. An example of a clear operation that will fail is trying to clear a content collection that does not exist. |
See Also
Reference
ContentCollectionCollection Interface
ContentCollectionCollection Members
Microsoft.SharePoint.Search.Extended.Administration.Content Namespace