Schema.AllManagedProperties Property

Gets the collection of ManagedProperty objects representing managed properties in the search schema for the Shared Service Provider.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)


Public ReadOnly Property AllManagedProperties As ManagedPropertyCollection
Dim instance As Schema
Dim value As ManagedPropertyCollection

value = instance.AllManagedProperties
public ManagedPropertyCollection AllManagedProperties { get; }

Property Value

Type: Microsoft.Office.Server.Search.Administration.ManagedPropertyCollection
A ManagedPropertyCollection object that represents the managed properties in the search schema.


The following code example writes out the full list of managed properties to the console window.


Ensure a Shared Service Provider is already created.

Project References

Add the following Project References in your console application code project before running this sample:

  • Microsoft.SharePoint

  • Microsoft.Office.Server

  • Microsoft.Office.Server.Search

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Office.Server.Search.Administration;
using Microsoft.SharePoint;

namespace ManagedPropertiesSample
    class Program
        static void Main(string[] args)
     //Replace <SiteName> with the name of a site using the Shared Service Provider.
                string strURL = "http://<SiteName>";
                Schema sspSchema = new Schema(SearchContext.GetContext(new SPSite(strURL)));
                ManagedPropertyCollection properties = sspSchema.AllManagedProperties;
                foreach (ManagedProperty property in properties)
            catch(Exception ex)

See Also


Schema Class

Schema Members

Microsoft.Office.Server.Search.Administration Namespace