BitMiracle.LibTiff.Classic.TiffErrorHandler.WarningHandler C# (CSharp) Méthode

WarningHandler() public méthode

Handles a warning by writing it text to the Console.Error.
The format is a composite format string that uses the same format as O:System.String.Format method. The method parameter, if not null, is printed before the message; it typically is used to identify the method in which a warning is detected.
public WarningHandler ( Tiff tif, string method, string format ) : void
tif Tiff An instance of the class. Can be null.
method string The method where a warning is detected.
format string A composite format string (see Remarks).
Résultat void
        public virtual void WarningHandler(Tiff tif, string method, string format, params object[] args)
        {
            TextWriter stderr = Console.Error;
            if (method != null)
                stderr.Write("{0}: ", method);

            stderr.Write("Warning, ");
            stderr.Write(format, args);
            stderr.Write("\n");
        }