C# 클래스 Novell.Directory.Ldap.Utilclass.ResourcesHandler

A utility class to get strings from the ExceptionMessages and ResultCodeMessages resources.
파일 보기 프로젝트 열기: EventStore/csharp-ldap

공개 메소드들

메소드 설명
getMessage ( System messageOrKey, System arguments ) : System.String

Returns a string using the MessageOrKey as a key into ExceptionMessages or, if the Key does not exist, returns the string messageOrKey. In addition it formats the arguments into the message according to MessageFormat.

getMessage ( System messageOrKey, System arguments, System locale ) : System.String

Returns the message stored in the ExceptionMessages resource for the specified locale using messageOrKey and argments passed into the constructor. If no string exists in the resource then this returns the string stored in message. (This method is identical to getLdapErrorMessage(Locale locale).)

getResultString ( int code ) : System.String

Returns a string representing the Ldap result code from the default ResultCodeMessages resource.

getResultString ( int code, System locale ) : System.String

Returns a string representing the Ldap result code. The message is obtained from the locale specific ResultCodeMessage resource.

비공개 메소드들

메소드 설명
ResourcesHandler ( ) : System

메소드 상세

getMessage() 공개 정적인 메소드

Returns a string using the MessageOrKey as a key into ExceptionMessages or, if the Key does not exist, returns the string messageOrKey. In addition it formats the arguments into the message according to MessageFormat.
public static getMessage ( System messageOrKey, System arguments ) : System.String
messageOrKey System Key string for the resource. /// ///
arguments System
리턴 System.String

getMessage() 공개 정적인 메소드

Returns the message stored in the ExceptionMessages resource for the specified locale using messageOrKey and argments passed into the constructor. If no string exists in the resource then this returns the string stored in message. (This method is identical to getLdapErrorMessage(Locale locale).)
public static getMessage ( System messageOrKey, System arguments, System locale ) : System.String
messageOrKey System Key string for the resource. /// ///
arguments System
locale System The Locale that should be used to pull message /// strings out of ExceptionMessages. /// ///
리턴 System.String

getResultString() 공개 정적인 메소드

Returns a string representing the Ldap result code from the default ResultCodeMessages resource.
public static getResultString ( int code ) : System.String
code int the result code /// ///
리턴 System.String

getResultString() 공개 정적인 메소드

Returns a string representing the Ldap result code. The message is obtained from the locale specific ResultCodeMessage resource.
public static getResultString ( int code, System locale ) : System.String
code int the result code /// ///
locale System The Locale that should be used to pull message /// strings out of ResultMessages. /// ///
리턴 System.String