System.IO.FileLoadException.FormatFileLoadExceptionMessage C# (CSharp) Méthode

FormatFileLoadExceptionMessage() static private méthode

static private FormatFileLoadExceptionMessage ( String fileName, int hResult ) : String
fileName String
hResult int
Résultat String
        internal static String FormatFileLoadExceptionMessage(String fileName,
            int hResult)
        {
            return String.Format(CultureInfo.CurrentCulture, GetFileLoadExceptionMessage(hResult), fileName, GetMessageForHR(hResult));
        }

Usage Example

 // Token: 0x06001817 RID: 6167 RVA: 0x0004D47F File Offset: 0x0004B67F
 private void SetMessageField()
 {
     if (this._message == null)
     {
         this._message = FileLoadException.FormatFileLoadExceptionMessage(this._fileName, base.HResult);
     }
 }
All Usage Examples Of System.IO.FileLoadException::FormatFileLoadExceptionMessage