ProfilePropertySettingsCollection.Set Method

Adds the specified ProfilePropertySettings object to the collection.

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

public void Set (
	ProfilePropertySettings propertySettings
public void Set (
	ProfilePropertySettings propertySettings
public function Set (
	propertySettings : ProfilePropertySettings
Not applicable.



A ProfilePropertySettings object.

Exception typeCondition


The ProfilePropertySettings object to add already exists in the collection, or the collection is read-only.

Calling this method has the same effect as calling the Add method.

Windows 98, Windows Server 2000 SP4, 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