ProfileInfoCollection.Add(ProfileInfo) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified ProfileInfo object to the collection.
public:
void Add(System::Web::Profile::ProfileInfo ^ profileInfo);
public void Add (System.Web.Profile.ProfileInfo profileInfo);
member this.Add : System.Web.Profile.ProfileInfo -> unit
Public Sub Add (profileInfo As ProfileInfo)
Parameters
- profileInfo
- ProfileInfo
A ProfileInfo object to add to the collection.
Exceptions
The collection is read-only.
A ProfileInfo object with the same UserName value as profileInfo
already exists in the collection.
Examples
For an example of a ProfileProvider implementation that creates a ProfileInfoCollection for user profiles in a data store, see Implementing a Profile Provider.
Remarks
The Add method is commonly used by profile-provider implementers to populate a ProfileInfoCollection to return from the GetAllProfiles, GetAllInactiveProfiles, FindProfilesByUserName, or FindInactiveProfilesByUserName method of the ProfileProvider abstract class.
Applies to
See also
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示