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
managedPropertyReference
Type: Microsoft.SharePoint.Search.Extended.Administration.Schema.ManagedPropertyA ManagedProperty that specifies a managed property. This is only applicable for numerable sortable managed properties.
Weight
Type: System.Int32An 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