SqlProfileProvider.GetPropertyValues Method

Retrieves profile property information and values from a SQL Server profile database.

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

public:
virtual SettingsPropertyValueCollection^ GetPropertyValues (
	SettingsContext^ sc, 
	SettingsPropertyCollection^ properties
) override
public SettingsPropertyValueCollection GetPropertyValues (
	SettingsContext sc, 
	SettingsPropertyCollection properties
)
public override function GetPropertyValues (
	sc : SettingsContext, 
	properties : SettingsPropertyCollection
) : SettingsPropertyValueCollection
Not applicable.

Parameters

sc

The SettingsContext that contains user profile information.

properties

A SettingsPropertyCollection containing profile information for the properties to be retrieved.

Return Value

A SettingsPropertyValueCollection containing profile property information and values.

The GetPropertyValues method is used by the ProfileBase class to retrieve profile properties for the current request that are managed by the SqlProfileProvider. Property values are returned from the data source for the application specified by the applicationName attribute in the configuration file. Property values and additional property information are returned as a collection of SettingsPropertyValue objects.

The following code example lists the profile properties and values identified in the current profile.

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: