ProfileInfoCollection.SetReadOnly Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Makes the contents of the ProfileInfoCollection read-only.

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

public void SetReadOnly()

The SetReadOnly method marks the ProfileInfoCollection as read-only so that ProfileInfo objects cannot be added to or removed from the collection. After calling the SetReadOnly method, you cannot change the ProfileInfoCollection back to read/write.

.NET Framework
Available since 2.0
Return to top