/// <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));
 }
Exemplo n.º 3
0
 /// <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));
 }
Exemplo n.º 4
0
 /// <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));
 }
Exemplo n.º 5
0
 /// <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));
 }
Exemplo n.º 6
0
 /// <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));
 }