コード例 #1
0
        private static SimpleMembershipProvider CreateDefaultSimpleMembershipProvider(string name, System.Web.Security.MembershipProvider currentDefault)
        {
            var membership             = new SimpleMembershipProvider(previousProvider: currentDefault);
            NameValueCollection config = new NameValueCollection();

            membership.Initialize(name, config);
            return(membership);
        }
コード例 #2
0
        private static SimpleMembershipProvider CreateDefaultSimpleMembershipProvider(string name, MembershipProvider currentDefault)
        {
            MembershipProvider       previousProvider = currentDefault;
            SimpleMembershipProvider provider         = new SimpleMembershipProvider(previousProvider);
            NameValueCollection      config           = new NameValueCollection();

            provider.Initialize(name, config);
            return(provider);
        }
コード例 #3
0
 private static SimpleMembershipProvider CreateDefaultSimpleMembershipProvider(string name, MembershipProvider currentDefault)
 {
     var membership = new SimpleMembershipProvider(previousProvider: currentDefault);
     NameValueCollection config = new NameValueCollection();
     membership.Initialize(name, config);
     return membership;
 }