Compartir a través de


: ManagedPropertyCollection.Create (Método) (Microsoft.Office.Server.Search.Administration)

Adds a new managed property to the managed property collection.

Espacio de nombres:
Ensamblado: Microsoft.Office.Server.Search (in microsoft.office.server.search.dll)

Sintaxis

'Declaración
Public Function Create ( _
    name As String, _
    managedType As ManagedDataType _
) As ManagedProperty
'Uso
Dim instance As ManagedPropertyCollection
Dim name As String
Dim managedType As ManagedDataType
Dim returnValue As ManagedProperty

returnValue = instance.Create(name, managedType)
public ManagedProperty Create (
    string name,
    ManagedDataType managedType
)

Parámetros

  • name
    A string that specifies the name for the managed property.
  • managedType
    A value from the ManagedDataType enumeration that specifies the data type for the managed property.

Valor devuelto

A ManagedProperty object that represents the managed property.

Comentarios

If a managed property with the same name already exists, the Create method throws an exception.

For sample code using the Create method, see Procedimiento para crear una propiedad administrada.

Vea también

Referencia

ManagedPropertyCollection (Clase)
ManagedPropertyCollection (Miembros)
Microsoft.Office.Server.Search.Administration (Espacio de nombres)