public IisVirtualDirectoryOptions DisableAllAuthenticationBut(IISAuthenticationMode enabledAuthenticationType) { foreach (IISAuthenticationMode mode in Enum.GetValues(typeof(IISAuthenticationMode))) { AuthenticationToSet.Add(mode, mode == enabledAuthenticationType); } return(this); }
public IisVirtualDirectoryOptions SetAuthentication(IISAuthenticationMode authenticationType, bool enabled) { if (AuthenticationToSet.ContainsKey(authenticationType)) { AuthenticationToSet[authenticationType] = enabled; } else { AuthenticationToSet.Add(authenticationType, enabled); } return(this); }
public static void SetAuthenticationMode(DirectoryEntry siteOrVDir, IISAuthenticationMode authMode) { SetProperty(siteOrVDir, "AuthFlags", (int)authMode); }
public static void SetAuthenticationMode(string serverName, int siteID, string appVDir, IISAuthenticationMode authMode) { DirectoryEntry app = GetVDir(serverName, siteID, appVDir); SetAuthenticationMode(app, authMode); }
public IisVirtualDirectoryOptions DisableAllAuthenticationBut(IISAuthenticationMode enabledAuthenticationType) { foreach(IISAuthenticationMode mode in Enum.GetValues(typeof(IISAuthenticationMode))) { AuthenticationToSet.Add(mode, mode == enabledAuthenticationType); } return this; }
public IisVirtualDirectoryOptions SetAuthentication(IISAuthenticationMode authenticationType, bool enabled) { if(AuthenticationToSet.ContainsKey(authenticationType)) { AuthenticationToSet[authenticationType] = enabled; } else { AuthenticationToSet.Add(authenticationType, enabled); } return this; }