C# 是否可以在C中重写WebSecurity类中的方法?
我需要重写C中WebSecurity类中的CreateUserAndAccountstring用户名、字符串密码、对象属性值=null、bool RequiredConfirmationToken=false方法您不能重写C中的非虚拟方法,这是CreateUserAndAccount方法签名:C# 是否可以在C中重写WebSecurity类中的方法?,c#,security,login,overriding,C#,Security,Login,Overriding,我需要重写C中WebSecurity类中的CreateUserAndAccountstring用户名、字符串密码、对象属性值=null、bool RequiredConfirmationToken=false方法您不能重写C中的非虚拟方法,这是CreateUserAndAccount方法签名: public static string CreateUserAndAccount( string userName, string password, Object propertyValues, bo
public static string CreateUserAndAccount(
string userName,
string password,
Object propertyValues,
bool requireConfirmationToken)
此方法不是虚拟的,因此不可能。有关详细信息,请查看此处:
您可以创建自己的会员制: