GetWebStatusString() статический приватный Метод

static private GetWebStatusString ( WebExceptionStatus status ) : string
status WebExceptionStatus
Результат string
Пример #1
0
        public static string GetWebStatusString(string Res, WebExceptionStatus Status)
        {
            string str2   = SR.GetString(WebExceptionMapping.GetWebStatusString(Status));
            string format = SR.GetString(Res);

            return(string.Format(CultureInfo.CurrentCulture, format, new object[] { str2 }));
        }
Пример #2
0
        /*++
         *
         *  GetWebStatusString - Get a WebExceptionStatus-specific resource string
         *
         *
         *  This method takes an input string and a WebExceptionStatus. We use the input
         *  string as a key to find a status message and the webStatus to produce
         *  a status-specific message, then we combine the two.
         *
         *  Input:
         *
         *      Res             - Id for resource string.
         *      Status          - The WebExceptionStatus to be formatted.
         *
         *  Returns:
         *
         *      string for localized message.
         *
         * --*/
        public static string GetWebStatusString(string Res, WebExceptionStatus Status)
        {
            string Msg;
            string StatusMsg;

            StatusMsg = SR.GetString(WebExceptionMapping.GetWebStatusString(Status));

            // Get the base status.

            Msg = SR.GetString(Res);

            // Format the status specific message into the base status and return
            // that

            return(String.Format(CultureInfo.CurrentCulture, Msg, StatusMsg));
        }
Пример #3
0
 public static string GetWebStatusString(WebExceptionStatus Status)
 {
     return(SR.GetString(WebExceptionMapping.GetWebStatusString(Status)));
 }