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

GetFileLoadExceptionMessage() private méthode

private GetFileLoadExceptionMessage ( int hResult ) : String
hResult int
Résultat String
        private static extern String GetFileLoadExceptionMessage(int hResult);

Usage Example

        internal static string FormatFileLoadExceptionMessage(string fileName, int hResult)
        {
            string format = null;

            FileLoadException.GetFileLoadExceptionMessage(hResult, JitHelpers.GetStringHandleOnStack(ref format));
            string arg = null;

            FileLoadException.GetMessageForHR(hResult, JitHelpers.GetStringHandleOnStack(ref arg));
            return(string.Format(CultureInfo.CurrentCulture, format, fileName, arg));
        }
All Usage Examples Of System.IO.FileLoadException::GetFileLoadExceptionMessage