/// <summary> Returns a string representing the specified result code in the default /// locale. /// /// </summary> /// <param name="code"> The result code for which a message is to be returned. /// /// </param> /// <returns> The message corresponding to the specified result code, or /// or null if the message is not available for the default locale. /// </returns> public static System.String resultCodeToString(int code) { return(ResourcesHandler.getResultString(code)); }
/// <summary> Returns a string representing the result code in the default /// locale. /// /// </summary> /// <returns> The message for the result code in the LdapException object. /// </returns> public virtual System.String resultCodeToString() { return(ResourcesHandler.getResultString(resultCode)); }
/// <summary> Returns a string representing the specified error code in the /// specified locale. /// /// </summary> /// <param name="code"> The result code for which a message is to be /// returned. /// /// </param> /// <param name="locale"> The locale in which to render the message. /// /// </param> /// <returns> A message corresponding to the result code in the /// specified locale, or null if the message is not available /// for the requested locale. /// </returns> public static System.String resultCodeToString(int code, System.Globalization.CultureInfo locale) { return(ResourcesHandler.getResultString(code, locale)); }
/// <summary> Returns a string representing the result code in the /// specified locale. /// /// </summary> /// <param name="locale">The locale in which to render the error message. /// /// </param> /// <returns> A message corresponding to the result code in the /// specified locale, or null if the message is not available /// for the requested locale. /// </returns> public virtual System.String resultCodeToString(System.Globalization.CultureInfo locale) { return(ResourcesHandler.getResultString(resultCode, locale)); }
/// <summary> Returns a string representing the specified error code in the /// specified locale. /// /// </summary> /// <param name="code"> The result code for which a message is to be /// returned. /// /// </param> /// <param name="locale"> The locale in which to render the message. /// /// </param> /// <returns> A message corresponding to the result code in the /// specified locale, or null if the message is not available /// for the requested locale. /// </returns> public static string resultCodeToString(int code, CultureInfo locale) { return(ResourcesHandler.getResultString(code, locale)); }
/// <summary> Returns a string representing the result code in the /// specified locale. /// /// </summary> /// <param name="locale">The locale in which to render the error message. /// /// </param> /// <returns> A message corresponding to the result code in the /// specified locale, or null if the message is not available /// for the requested locale. /// </returns> public virtual string resultCodeToString(CultureInfo locale) { return(ResourcesHandler.getResultString(resultCode, locale)); }