Share via


ManagedPropertyCollection.Create Method (String, String, ManagedType)

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 _
) As ManagedProperty
'Usage
Dim instance As ManagedPropertyCollection
Dim Name As String
Dim Description As String
Dim type As ManagedType
Dim returnValue As ManagedProperty

returnValue = instance.Create(Name, Description, _
    type)
ManagedProperty Create(
    string Name,
    string Description,
    ManagedType type
)

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.

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