/// <summary> /// Create a new Sites object. /// </summary> /// <param name="siteID">Initial value of the SiteID property.</param> /// <param name="siteGuid">Initial value of the SiteGuid property.</param> /// <param name="siteName">Initial value of the SiteName property.</param> /// <param name="allowUserSkins">Initial value of the AllowUserSkins property.</param> /// <param name="allowPageSkins">Initial value of the AllowPageSkins property.</param> /// <param name="allowHideMenuOnPages">Initial value of the AllowHideMenuOnPages property.</param> /// <param name="allowNewRegistration">Initial value of the AllowNewRegistration property.</param> /// <param name="useSecureRegistration">Initial value of the UseSecureRegistration property.</param> /// <param name="useSSLOnAllPages">Initial value of the UseSSLOnAllPages property.</param> /// <param name="isServerAdminSite">Initial value of the IsServerAdminSite property.</param> /// <param name="useLdapAuth">Initial value of the UseLdapAuth property.</param> /// <param name="autoCreateLdapUserOnFirstLogin">Initial value of the AutoCreateLdapUserOnFirstLogin property.</param> /// <param name="ldapPort">Initial value of the LdapPort property.</param> /// <param name="ldapUserDNKey">Initial value of the LdapUserDNKey property.</param> /// <param name="reallyDeleteUsers">Initial value of the ReallyDeleteUsers property.</param> /// <param name="useEmailForLogin">Initial value of the UseEmailForLogin property.</param> /// <param name="allowUserFullNameChange">Initial value of the AllowUserFullNameChange property.</param> /// <param name="editorSkin">Initial value of the EditorSkin property.</param> /// <param name="defaultFriendlyUrlPatternEnum">Initial value of the DefaultFriendlyUrlPatternEnum property.</param> /// <param name="allowPasswordRetrieval">Initial value of the AllowPasswordRetrieval property.</param> /// <param name="allowPasswordReset">Initial value of the AllowPasswordReset property.</param> /// <param name="requiresQuestionAndAnswer">Initial value of the RequiresQuestionAndAnswer property.</param> /// <param name="maxInvalidPasswordAttempts">Initial value of the MaxInvalidPasswordAttempts property.</param> /// <param name="passwordAttemptWindowMinutes">Initial value of the PasswordAttemptWindowMinutes property.</param> /// <param name="requiresUniqueEmail">Initial value of the RequiresUniqueEmail property.</param> /// <param name="passwordFormat">Initial value of the PasswordFormat property.</param> /// <param name="minRequiredPasswordLength">Initial value of the MinRequiredPasswordLength property.</param> /// <param name="minReqNonAlphaChars">Initial value of the MinReqNonAlphaChars property.</param> /// <param name="enableMyPageFeature">Initial value of the EnableMyPageFeature property.</param> /// <param name="allowOpenIDAuth">Initial value of the AllowOpenIDAuth property.</param> /// <param name="allowWindowsLiveAuth">Initial value of the AllowWindowsLiveAuth property.</param> public static Sites CreateSites(global::System.Int32 siteID, global::System.Guid siteGuid, global::System.String siteName, global::System.Boolean allowUserSkins, global::System.Boolean allowPageSkins, global::System.Boolean allowHideMenuOnPages, global::System.Boolean allowNewRegistration, global::System.Boolean useSecureRegistration, global::System.Boolean useSSLOnAllPages, global::System.Boolean isServerAdminSite, global::System.Boolean useLdapAuth, global::System.Boolean autoCreateLdapUserOnFirstLogin, global::System.Int32 ldapPort, global::System.String ldapUserDNKey, global::System.Boolean reallyDeleteUsers, global::System.Boolean useEmailForLogin, global::System.Boolean allowUserFullNameChange, global::System.String editorSkin, global::System.String defaultFriendlyUrlPatternEnum, global::System.Boolean allowPasswordRetrieval, global::System.Boolean allowPasswordReset, global::System.Boolean requiresQuestionAndAnswer, global::System.Int32 maxInvalidPasswordAttempts, global::System.Int32 passwordAttemptWindowMinutes, global::System.Boolean requiresUniqueEmail, global::System.Int32 passwordFormat, global::System.Int32 minRequiredPasswordLength, global::System.Int32 minReqNonAlphaChars, global::System.Boolean enableMyPageFeature, global::System.Boolean allowOpenIDAuth, global::System.Boolean allowWindowsLiveAuth) { Sites sites = new Sites(); sites.SiteID = siteID; sites.SiteGuid = siteGuid; sites.SiteName = siteName; sites.AllowUserSkins = allowUserSkins; sites.AllowPageSkins = allowPageSkins; sites.AllowHideMenuOnPages = allowHideMenuOnPages; sites.AllowNewRegistration = allowNewRegistration; sites.UseSecureRegistration = useSecureRegistration; sites.UseSSLOnAllPages = useSSLOnAllPages; sites.IsServerAdminSite = isServerAdminSite; sites.UseLdapAuth = useLdapAuth; sites.AutoCreateLdapUserOnFirstLogin = autoCreateLdapUserOnFirstLogin; sites.LdapPort = ldapPort; sites.LdapUserDNKey = ldapUserDNKey; sites.ReallyDeleteUsers = reallyDeleteUsers; sites.UseEmailForLogin = useEmailForLogin; sites.AllowUserFullNameChange = allowUserFullNameChange; sites.EditorSkin = editorSkin; sites.DefaultFriendlyUrlPatternEnum = defaultFriendlyUrlPatternEnum; sites.AllowPasswordRetrieval = allowPasswordRetrieval; sites.AllowPasswordReset = allowPasswordReset; sites.RequiresQuestionAndAnswer = requiresQuestionAndAnswer; sites.MaxInvalidPasswordAttempts = maxInvalidPasswordAttempts; sites.PasswordAttemptWindowMinutes = passwordAttemptWindowMinutes; sites.RequiresUniqueEmail = requiresUniqueEmail; sites.PasswordFormat = passwordFormat; sites.MinRequiredPasswordLength = minRequiredPasswordLength; sites.MinReqNonAlphaChars = minReqNonAlphaChars; sites.EnableMyPageFeature = enableMyPageFeature; sites.AllowOpenIDAuth = allowOpenIDAuth; sites.AllowWindowsLiveAuth = allowWindowsLiveAuth; return sites; }
/// <summary> /// Deprecated Method for adding a new object to the Sites EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSites(Sites sites) { base.AddObject("Sites", sites); }