Share via


QualityComponentCollection.Create Method

Adds a new quality component to the quality component collection.

Namespace:  Microsoft.SharePoint.Search.Extended.Administration.Schema
Assembly:  Microsoft.SharePoint.Search.Extended.Administration (in Microsoft.SharePoint.Search.Extended.Administration.dll)

Syntax

'Declaration
Function Create ( _
    managedPropertyReference As ManagedProperty, _
    Weight As Integer _
) As QualityComponent
'Usage
Dim instance As QualityComponentCollection
Dim managedPropertyReference As ManagedProperty
Dim Weight As Integer
Dim returnValue As QualityComponent

returnValue = instance.Create(managedPropertyReference, _
    Weight)
QualityComponent Create(
    ManagedProperty managedPropertyReference,
    int Weight
)

Parameters

  • Weight
    Type: System.Int32

    An integer that specifies the weight for the quality component.

Return Value

Type: Microsoft.SharePoint.Search.Extended.Administration.Schema.QualityComponent
A QualityComponent object that represents the created quality component.

Exceptions

Exception Condition
AdminException

if the configuration deployment fails. A specific error message will provide further details along with the exception.

See Also

Reference

QualityComponentCollection Interface

QualityComponentCollection Members

Microsoft.SharePoint.Search.Extended.Administration.Schema Namespace