public static void Validate(UserNamePasswordValidationMode value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(UserNamePasswordValidationMode))); } }
public static void Validate(UserNamePasswordValidationMode value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int) value, typeof(UserNamePasswordValidationMode))); } }
public static bool IsDefined(UserNamePasswordValidationMode validationMode) { if ((validationMode != UserNamePasswordValidationMode.Windows) && (validationMode != UserNamePasswordValidationMode.MembershipProvider)) { return(validationMode == UserNamePasswordValidationMode.Custom); } return(true); }
public static bool IsDefined(UserNamePasswordValidationMode validationMode) { if ((validationMode != UserNamePasswordValidationMode.Windows) && (validationMode != UserNamePasswordValidationMode.MembershipProvider)) { return (validationMode == UserNamePasswordValidationMode.Custom); } return true; }
internal UserNamePasswordServiceCredential(UserNamePasswordServiceCredential other) { includeWindowsGroups = other.includeWindowsGroups; membershipProvider = other.membershipProvider; validationMode = other.validationMode; validator = other.validator; cacheLogonTokens = other.cacheLogonTokens; maxCachedLogonTokens = other.maxCachedLogonTokens; cachedLogonTokenLifetime = other.cachedLogonTokenLifetime; isReadOnly = other.isReadOnly; }
internal UserNamePasswordServiceCredential(UserNamePasswordServiceCredential other) { _includeWindowsGroups = other._includeWindowsGroups; _membershipProvider = other._membershipProvider; _validationMode = other._validationMode; _validator = other._validator; _cacheLogonTokens = other._cacheLogonTokens; _maxCachedLogonTokens = other._maxCachedLogonTokens; _cachedLogonTokenLifetime = other._cachedLogonTokenLifetime; _isReadOnly = other._isReadOnly; }
internal UserNamePasswordServiceCredential(UserNamePasswordServiceCredential other) { this.includeWindowsGroups = other.includeWindowsGroups; this.membershipProvider = other.membershipProvider; this.validationMode = other.validationMode; this.validator = other.validator; this.cacheLogonTokens = other.cacheLogonTokens; this.maxCachedLogonTokens = other.maxCachedLogonTokens; this.cachedLogonTokenLifetime = other.cachedLogonTokenLifetime; this.isReadOnly = other.isReadOnly; }
public static bool IsDefined(UserNamePasswordValidationMode validationMode) { return validationMode == UserNamePasswordValidationMode.Windows || validationMode == UserNamePasswordValidationMode.MembershipProvider || validationMode == UserNamePasswordValidationMode.Custom; }
public static IServiceCredentials UserNamePasswordValidationMode(this IServiceCredentials me, UserNamePasswordValidationMode userNamePasswordValidationMode) { var cre = me as _ServiceCredentials; cre.ServiceCredentials.UserNameAuthentication.UserNamePasswordValidationMode = userNamePasswordValidationMode; return(me); }
public static bool IsDefined(UserNamePasswordValidationMode validationMode) { return(validationMode == UserNamePasswordValidationMode.Windows || validationMode == UserNamePasswordValidationMode.MembershipProvider || validationMode == UserNamePasswordValidationMode.Custom); }