SiteMapProviderCollection::Item Property (String^)
.NET Framework (current version)
Gets a SiteMapProvider object with a specific name from the provider collection.
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: