Share via


ContentCollectionCollection.AddCollection Method (String, String)

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 _
) As ContentCollection
'Usage
Dim instance As ContentCollectionCollection
Dim name As String
Dim description As String
Dim returnValue As ContentCollection

returnValue = instance.AddCollection(name, _
    description)
ContentCollection AddCollection(
    string name,
    string description
)

Parameters

  • name
    Type: System.String

    The name to give the content collection.

  • description
    Type: System.String

    The description to give 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.

Remarks

The default document processing pipeline, Pipeline, will be associated with the content collection.

See Also

Reference

ContentCollectionCollection Interface

ContentCollectionCollection Members

AddCollection Overload

Microsoft.SharePoint.Search.Extended.Administration.Content Namespace

Pipeline