ProfileProviderCollection::Item Property (String^)

 

Returns the profile provider referenced by the specified provider name.

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

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

Parameters

name
Type: System::String^

The name of the profile provider.

Property Value

Type: System.Web.Profile::ProfileProvider^

An object that inherits the ProfileProvider abstract class.

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.

.NET Framework
Available since 2.0
Return to top
Show: