
نوشته شده توسط
karaji333
سلام.
نه اسم فولدر نیست. اسم یکی از رولهای تعریف شده هستش. یعنی کاربرایی که تو نقش مدیریتی هستن اجازه دارن
اون بنده خدا که گفته این namespace مربوط به کلاسشه
خب پس از کجا بفهمه کدوم فلدری که ما ایجاد کردیم واسه admine کدوم usere ؟ اسم فلدرا کجا باید بنویسیم؟ شاید چندتا فلدر داشتیم!!
بعد اینکه namespase نداره که کل کلاسی که گفتند ایجاد کنیم اینه تو پروژه من :
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
///<summary>
/// Summary description for Class2
///</summary>
///
publicclassMySiteRoleProvider : System.Web.Security.RoleProvider
{
publicoverridevoid AddUsersToRoles(string[] usernames, string[] roleNames)
{
thrownewNotImplementedException();
}
publicoverridestring ApplicationName
{
get
{
thrownewNotImplementedException();
}
set
{
thrownewNotImplementedException();
}
}
publicoverridevoid CreateRole(string roleName)
{
thrownewNotImplementedException();
}
publicoverridebool DeleteRole(string roleName, bool throwOnPopulatedRole)
{
thrownewNotImplementedException();
}
publicoverridestring[] FindUsersInRole(string roleName, string usernameToMatch)
{
thrownewNotImplementedException();
}
publicoverridestring[] GetAllRoles()
{
thrownewNotImplementedException();
}
publicoverridestring[] GetRolesForUser(string username)
{
string[] UserRolename = newstring[1];
UserRolename[0] = DataLayer.Users.RoleName(username); // ¦يë§ë ëںê ëç¬ کں© © ںھ §ی¢ں ی«
return UserRolename;
}
publicoverridestring[] GetUsersInRole(string roleName)
{
thrownewNotImplementedException();
}
publicoverridebool IsUserInRole(string username, string roleName)
{
thrownewNotImplementedException();
}
publicoverridevoid RemoveUsersFromRoles(string[] usernames, string[] roleNames)
{
thrownewNotImplementedException();
}
publicoverridebool RoleExists(string roleName)
{
thrownewNotImplementedException();
}
}