📄 sr.cs
字号:
//------------------------------------------------------------------------------
// <copyright file="SR.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace Microsoft.Samples {
using System;
internal static class SR {
internal static string GetString(string strString) {
return strString;
}
internal static string GetString(string strString, string param1) {
return string.Format(strString, param1);
}
internal static string GetString(string strString, string param1, string param2) {
return string.Format(strString, param1, param2);
}
internal static string GetString(string strString, string param1, string param2, string param3) {
return string.Format(strString, param1, param2, param3);
}
internal const string Auth_rule_names_cant_contain_char = "Authorization rule names cannot contain the '{0}' character.";
internal const string Connection_name_not_specified = "The attribute 'connectionStringName' is missing or empty.";
internal const string Connection_string_not_found = "The connection name '{0}' was not found in the applications configuration or the connection string is empty.";
internal const string Membership_AccountLockOut = "The user account has been locked out.";
internal const string Membership_Custom_Password_Validation_Failure = "The custom password validation failed.";
internal const string Membership_InvalidAnswer = "The password-answer supplied is invalid.";
internal const string Membership_InvalidEmail = "The E-mail supplied is invalid.";
internal const string Membership_InvalidPassword = "The password supplied is invalid. Passwords must conform to the password strength requirements configured for the default provider.";
internal const string Membership_InvalidProviderUserKey = "The provider user key supplied is invalid. It must be of type System.Guid.";
internal const string Membership_InvalidQuestion = "The password-question supplied is invalid. Note that the current provider configuration requires a valid password question and answer. As a result, a CreateUser overload that accepts question and answer parameters must also be used.";
internal const string Membership_more_than_one_user_with_email = "More than one user has the specified e-mail address.";
internal const string Membership_password_too_long = "The password is too long: it must not exceed 128 chars after encrypting.";
internal const string Membership_PasswordRetrieval_not_supported = "This Membership Provider has not been configured to support password retrieval.";
internal const string Membership_UserNotFound = "The user was not found.";
internal const string Membership_WrongAnswer = "The password-answer supplied is wrong.";
internal const string Membership_WrongPassword = "The password supplied is wrong.";
internal const string PageIndex_bad = "The pageIndex must be greater than or equal to zero.";
internal const string PageIndex_PageSize_bad = "The combination of pageIndex and pageSize cannot exceed the maximum value of System.Int32.";
internal const string PageSize_bad = "The pageSize must be greater than zero.";
internal const string Parameter_array_empty = "The array parameter '{0}' should not be empty.";
internal const string Parameter_can_not_be_empty = "The parameter '{0}' must not be empty.";
internal const string Parameter_can_not_contain_comma = "The parameter '{0}' must not contain commas.";
internal const string Parameter_duplicate_array_element = "The array '{0}' should not contain duplicate values.";
internal const string Parameter_too_long = "The parameter '{0}' is too long: it must not exceed {1} chars in length.";
internal const string Password_does_not_match_regular_expression = "The parameter '{0}' does not match the regular expression specified in config file.";
internal const string Password_need_more_non_alpha_numeric_chars = "Non alpha numeric characters in '{0}' needs to be greater than or equal to '{1}'.";
internal const string Password_too_short = "The length of parameter '{0}' needs to be greater or equal to '{1}'.";
internal const string PersonalizationProvider_ApplicationNameExceedMaxLength = "The ApplicationName cannot exceed character length {0}.";
internal const string PersonalizationProvider_BadConnection = "The specified connectionStringName, '{0}', was not registered.";
internal const string PersonalizationProvider_CantAccess = "A connection could not be made by the {0} personalization provider using the specified registration.";
internal const string PersonalizationProvider_NoConnection = "The connectionStringName attribute must be specified when registering a personalization provider.";
internal const string PersonalizationProvider_UnknownProp = "Invalid attribute '{0}', specified in the '{1}' personalization provider registration.";
internal const string ProfileSqlProvider_description = "SQL profile provider.";
internal const string Property_Had_Malformed_Url = "The '{0}' property had a malformed URL: {1}.";
internal const string Provider_application_name_too_long = "The application name is too long.";
internal const string Provider_bad_password_format = "Password format specified is invalid.";
internal const string Provider_can_not_retrieve_hashed_password = "Configured settings are invalid: Hashed passwords cannot be retrieved. Either set the password format to different type, or set supportsPasswordRetrieval to false.";
internal const string Provider_Error = "The Provider encountered an unknown error.";
internal const string Provider_Not_Found = "Provider '{0}' was not found.";
internal const string Provider_role_already_exists = "The role '{0}' already exists.";
internal const string Provider_role_not_found = "The role '{0}' was not found.";
internal const string Provider_Schema_Version_Not_Match = "The '{0}' requires a database schema compatible with schema version '{1}'. However, the current database schema is not compatible with this version. You may need to either install a compatible schema with aspnet_regsql.exe (available in the framework installation directory), or upgrade the provider to a newer version.";
internal const string Provider_this_user_already_in_role = "The user '{0}' is already in role '{1}'.";
internal const string Provider_this_user_not_found = "The user '{0}' was not found.";
internal const string Provider_unknown_failure = "Stored procedure call failed.";
internal const string Provider_unrecognized_attribute = "Attribute not recognized '{0}'";
internal const string Provider_user_not_found = "The user was not found in the database.";
internal const string Role_is_not_empty = "This role cannot be deleted because there are users present in it.";
internal const string RoleSqlProvider_description = "SQL role provider.";
internal const string SiteMapProvider_cannot_remove_root_node = "Root node cannot be removed from the providers, use RemoveProvider(string providerName) instead.";
internal const string SqlError_Connection_String = "An error occurred while attempting to initialize a System.Data.SqlClient.SqlConnection object. The value that was provided for the connection string may be wrong, or it may contain an invalid syntax.";
internal const string SqlExpress_file_not_found_in_connection_string = "SQL Express filename was not found in the connection string.";
internal const string SqlPersonalizationProvider_Description = "Personalization provider that stores data in a SQL Server database.";
internal const string Value_must_be_boolean = "The value must be boolean (true or false) for property '{0}'.";
internal const string Value_must_be_non_negative_integer = "The value must be a non-negative 32-bit integer for property '{0}'.";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -