ManagedPropertyBoostCollection.Create Method
Add a managed property boost component to the managed property boost 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, _
BoostValue As String _
) As ManagedPropertyBoostComponent
'Usage
Dim instance As ManagedPropertyBoostCollection
Dim managedPropertyReference As ManagedProperty
Dim BoostValue As String
Dim returnValue As ManagedPropertyBoostComponent
returnValue = instance.Create(managedPropertyReference, _
BoostValue)
ManagedPropertyBoostComponent Create(
ManagedProperty managedPropertyReference,
string BoostValue
)
Parameters
managedPropertyReference
Type: Microsoft.SharePoint.Search.Extended.Administration.Schema.ManagedPropertyA ManagedProperty that specifies the managed property to apply the boost for.
BoostValue
Type: System.StringA string that specifies the boost value for the managed property boost component.
Return Value
Type: Microsoft.SharePoint.Search.Extended.Administration.Schema.ManagedPropertyBoostComponent
A ManagedPropertyBoostComponent object that represents the created managed property boost 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
ManagedPropertyBoostCollection Interface
ManagedPropertyBoostCollection Members
Microsoft.SharePoint.Search.Extended.Administration.Schema Namespace