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.StringA string that specifies the name for the managed property.
Description
Type: System.StringA string that specifies the description for the managed property.
type
Type: Microsoft.SharePoint.Search.Extended.Administration.Schema.ManagedTypeA value from the ManagedType enumeration that specifies the data type for the managed property.
queryable
Type: System.BooleanA boolean value to indicate whether the managed property is queryable.
sortableType
Type: Microsoft.SharePoint.Search.Extended.Administration.Schema.ManagedPropertySortableTypeA value from the ManagedPropertySortableType enumeration that specifies the sortable type for the managed property.
enableStemming
Type: System.BooleanA boolean value to indicate whether the managed property is stemmed.
summaryType
Type: Microsoft.SharePoint.Search.Extended.Administration.Schema.SummaryTypeA value from the SummaryType enumeration that specifies the summary type for the managed property.
mappingDisallowed
Type: System.BooleanA boolean value to indicate whether the managed property can be mapped by crawled properties.
deleteDisallowed
Type: System.BooleanA 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
Microsoft.SharePoint.Search.Extended.Administration.Schema Namespace