ProfileInfoCollection Class

 

A collection of ProfileInfo objects.

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

System::Object
  System.Web.Profile::ProfileInfoCollection

[SerializableAttribute]
public ref class ProfileInfoCollection sealed : IEnumerable, 
	ICollection

NameDescription
System_CAPS_pubmethodProfileInfoCollection()

Creates a new, empty ProfileInfoCollection.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of ProfileInfo objects in the collection.

System_CAPS_pubpropertyIsSynchronized

Gets a value indicating whether the profile info collection is thread safe.

System_CAPS_pubpropertyItem[String^]

Gets the ProfileInfo object in the collection, referenced by the specified UserName.

System_CAPS_pubpropertySyncRoot

Gets the synchronization root.

NameDescription
System_CAPS_pubmethodAdd(ProfileInfo^)

Adds the specified ProfileInfo object to the collection.

System_CAPS_pubmethodClear()

Removes all ProfileInfo objects from the collection.

System_CAPS_pubmethodCopyTo(Array^, Int32)

Copies the ProfileInfoCollection to a one-dimensional array.

System_CAPS_pubmethodCopyTo(array<ProfileInfo^>^, Int32)

Copies the ProfileInfoCollection to a one-dimensional array of type ProfileInfo.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Gets an enumerator that can iterate through the ProfileInfoCollection.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodRemove(String^)

Removes the ProfileInfo object with the specified user name from the collection.

System_CAPS_pubmethodSetReadOnly()

Makes the contents of the ProfileInfoCollection read-only.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

A ProfileInfoCollection object contains ProfileInfo objects that represent user profiles from a data source. A ProfileInfoCollection is returned from the GetAllProfiles, GetAllInactiveProfiles, FindProfilesByUserName, and FindInactiveProfilesByUserName methods of a ProfileProvider.

A ProfileInfoCollection can be supplied to the DeleteProfiles method to delete profile information and properties from the data source.

The following code example allows a user to search for profiles using the FindProfilesByUserName and FindInactiveProfilesByUserName methods. The user can pass the ProfileInfoCollection returned by the find methods to the DeleteProfiles method to delete the associated profiles from the data source.

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

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: