: ManagedPropertyCollection.Item (Propiedad) (Microsoft.Office.Server.Search.Administration)
Gets the specified managed property from the collection of managed properties.
Espacio de nombres:
Ensamblado: Microsoft.Office.Server.Search (in microsoft.office.server.search.dll)
Sintaxis
'Declaración
Public ReadOnly Default Property Item ( _
name As String _
) As ManagedProperty
'Uso
Dim instance As ManagedPropertyCollection
Dim name As String
Dim value As ManagedProperty
value = instance(name)
public ManagedProperty this [
string name
] { get; }
Parámetros
- name
A string that specifies the managed property name.
Valor de propiedad
A ManagedProperty object that represents the managed property.
Ejemplo
The following code sample demonstrates how to use the Item property of the ManagedPropertyCollection class to retrieve a ManagedProperty object representing a specific managed property.
using Microsoft.SharePoint;
using Microsoft.Office.Server.Search.Administration;
…
Schema sspSchema = new Schema(SearchContext.GetContext(new SPSite("http://<SiteName>")));
ManagedPropertyCollection properties = sspSchema.AllManagedProperties;
ManagedProperty property = properties["<PropertyName>"];
Vea también
Referencia
ManagedPropertyCollection (Clase)
ManagedPropertyCollection (Miembros)
Microsoft.Office.Server.Search.Administration (Espacio de nombres)