Delete Profile

S

shapper

Hello,

I am using a custom profile provider as follows:

public class ProfileHelper : ProfileBase {

[SettingsAllowAnonymous(false), SettingsSerializeAs
(SettingsSerializeAs.Binary)]
public Profile.Contact Contact {
get {
return base["Contact"] as Profile.Contact;
}
set {
base["Contact"] = value;
}
} // Contact

[SettingsAllowAnonymous(true), SettingsSerializeAs
(SettingsSerializeAs.Binary)]
public Profile.Visitor Visitor {
get {
return base["Visitor"] as Profile.Visitor;
}
set {
base["Visitor"] = value;
}
} // Visitor

public static ProfileHelper GetProfile() {
return Create(HttpContext.Current.Profile.UserName) as
ProfileHelper;
} // GetProfile

public static ProfileHelper GetProfile(string username) {
return Create(username) as ProfileHelper;
} // GetProfile

} // ProfileHelper

How can I delete a profile?

Should I include a method in my custom profile provider to delete a
profile?

Thanks,

Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top