ContentCollectionCollection.AddCollection Method (String, 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)


Function AddCollection ( _
    name As String, _
    description As String, _
    pipeline As String _
) As ContentCollection
Dim instance As ContentCollectionCollection
Dim name As String
Dim description As String
Dim pipeline As String
Dim returnValue As ContentCollection

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


  • name
    Type: System.String

    The name to give the content collection.

  • description
    Type: System.String

    The description to give the content collection.

  • pipeline
    Type: System.String

    The name of the pipeline to associate with the content collection.

Return Value

Type: Microsoft.SharePoint.Search.Extended.Administration.Content.ContentCollection
A ContentCollection representing the added content collection.


Exception Condition

The [name] is [null].


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


ContentCollectionCollection Interface

ContentCollectionCollection Members

AddCollection Overload

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