ContentCollectionCollection.AddCollection Method (String, String, Pipeline)
Creates a content collection and adds it to the collection.
Namespace: Microsoft.SharePoint.Search.Extended.Administration.Content
Assembly: Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)
Syntax
'Declaration
Function AddCollection ( _
name As String, _
description As String, _
pipeline As Pipeline _
) As ContentCollection
'Usage
Dim instance As ContentCollectionCollection
Dim name As String
Dim description As String
Dim pipeline As Pipeline
Dim returnValue As ContentCollection
returnValue = instance.AddCollection(name, _
description, pipeline)
ContentCollection AddCollection(
string name,
string description,
Pipeline pipeline
)
Parameters
name
Type: System.StringThe name to give the content collection.
description
Type: System.StringThe description to give the content collection.
pipeline
Type: Microsoft.SharePoint.Search.Extended.Administration.Content.PipelineThe pipeline to associate with the content collection.
Return Value
Type: Microsoft.SharePoint.Search.Extended.Administration.Content.ContentCollection
A ContentCollection representing the added content collection.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The [name] is [null]. |
AdminException | The add operation.fails. An example of an add operation that will fail is adding a content collection with the same name as an existing content collection. |
See Also
Reference
ContentCollectionCollection Interface
ContentCollectionCollection Members
Microsoft.SharePoint.Search.Extended.Administration.Content Namespace