Share via


QueryTopologyCollection.Create Method (Int32)

Creates a new query topology.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function Create ( _
    partitions As Integer _
) As QueryTopology
'Usage
Dim instance As QueryTopologyCollection
Dim partitions As Integer
Dim returnValue As QueryTopology

returnValue = instance.Create(partitions)
public QueryTopology Create(
    int partitions
)

Parameters

  • partitions
    Type: System.Int32

    The number of index partitions in the new query topology.

Return Value

Type: Microsoft.Office.Server.Search.Administration.QueryTopology
The query topology that was created.

Remarks

The value of the partitions parameter must be an integer that is greater than 0 and less than 256.

An InvalidOperationException is thrown if the type of the current Search service application is ExtendedConnector.

See Also

Reference

QueryTopologyCollection Class

QueryTopologyCollection Members

Create Overload

Microsoft.Office.Server.Search.Administration Namespace