System.Web.Profile.ProfileInfoCollection.SetReadOnly Method

Makes the contents of the System.Web.Profile.ProfileInfoCollection read-only.

Syntax

public void SetReadOnly ()

Remarks

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

Requirements

Namespace: System.Web.Profile
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0