Share via


ManagedPropertyCollection.Create Method (String, String, ManagedType, Boolean, ManagedPropertySortableType, Boolean, SummaryType, Boolean, Boolean)

Adds a new managed property to the managed property 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 ( _
    Name As String, _
    Description As String, _
    type As ManagedType, _
    queryable As Boolean, _
    sortableType As ManagedPropertySortableType, _
    enableStemming As Boolean, _
    summaryType As SummaryType, _
    mappingDisallowed As Boolean, _
    deleteDisallowed As Boolean _
) As ManagedProperty
'Usage
Dim instance As ManagedPropertyCollection
Dim Name As String
Dim Description As String
Dim type As ManagedType
Dim queryable As Boolean
Dim sortableType As ManagedPropertySortableType
Dim enableStemming As Boolean
Dim summaryType As SummaryType
Dim mappingDisallowed As Boolean
Dim deleteDisallowed As Boolean
Dim returnValue As ManagedProperty

returnValue = instance.Create(Name, Description, _
    type, queryable, sortableType, enableStemming, _
    summaryType, mappingDisallowed, _
    deleteDisallowed)
ManagedProperty Create(
    string Name,
    string Description,
    ManagedType type,
    bool queryable,
    ManagedPropertySortableType sortableType,
    bool enableStemming,
    SummaryType summaryType,
    bool mappingDisallowed,
    bool deleteDisallowed
)

Parameters

  • Name
    Type: System.String

    A string that specifies the name for the managed property.

  • Description
    Type: System.String

    A string that specifies the description for the managed property.

  • queryable
    Type: System.Boolean

    A boolean value to indicate whether the managed property is queryable.

  • enableStemming
    Type: System.Boolean

    A boolean value to indicate whether the managed property is stemmed.

  • mappingDisallowed
    Type: System.Boolean

    A boolean value to indicate whether the managed property can be mapped by crawled properties.

  • deleteDisallowed
    Type: System.Boolean

    A boolean value to indicate whether the managed property can be deleted.

Return Value

Type: Microsoft.SharePoint.Search.Extended.Administration.Schema.ManagedProperty
A ManagedProperty object that represents the created managed property.

Exceptions

Exception Condition
AdminException

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

See Also

Reference

ManagedPropertyCollection Interface

ManagedPropertyCollection Members

Create Overload

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