ProfileProviderCollection.Item[String] Property

Definition

Returns the profile provider referenced by the specified provider name.

public:
 property System::Web::Profile::ProfileProvider ^ default[System::String ^] { System::Web::Profile::ProfileProvider ^ get(System::String ^ name); };
public System.Web.Profile.ProfileProvider this[string name] { get; }
member this.Item(string) : System.Web.Profile.ProfileProvider
Default Public ReadOnly Property Item(name As String) As ProfileProvider

Parameters

name
String

The name of the profile provider.

Property Value

An object that inherits the ProfileProvider abstract class.

Remarks

The profile providers for an application are exposed as a read-only ProfileProviderCollection through the Providers property of the ProfileManager class. You can access a specific profile provider in the collection by name and cast it as the specific provider type, such as SqlProfileProvider. This enables you to manage user profile properties from multiple data stores in a single application. It also allows you to access members of a specific profile provider that are not members of the ProfileProvider abstract class.

Applies to

See also