Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/266.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 是否可以在C中重写WebSecurity类中的方法?_C#_Security_Login_Overriding - Fatal编程技术网

C# 是否可以在C中重写WebSecurity类中的方法?

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

我需要重写C中WebSecurity类中的CreateUserAndAccountstring用户名、字符串密码、对象属性值=null、bool RequiredConfirmationToken=false方法

您不能重写C中的非虚拟方法,这是CreateUserAndAccount方法签名:

public static string CreateUserAndAccount(
string userName,
string password,
Object propertyValues,
bool requireConfirmationToken)
此方法不是虚拟的,因此不可能。有关详细信息,请查看此处:

您可以创建自己的会员制: