SiteMapProviderCollection::Item Property (String^)

 

Gets a SiteMapProvider object with a specific name from the provider collection.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public:
property SiteMapProvider^ default[
	String^ name
] {
	SiteMapProvider^ get(String^ name);
}

Parameters

name
Type: System::String^

The name of the SiteMapProvider to find.

Property Value

Type: System.Web::SiteMapProvider^

A SiteMapProvider that represents a SiteMapProviderCollection element.

You can use the indexer to iterate over the contents of a SiteMapProviderCollection object.

The following code example demonstrates how to use the Item property to retrieve the default ASP.NET SiteMapProvider object from the SiteMapProviderCollection object that is returned when the Providers collection is accessed.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: