ActiveUp.Net.Mail.Parser.ParseHeaderv1 C# (CSharp) Метод

ParseHeaderv1() публичный статический Метод

public static ParseHeaderv1 ( string filePath ) : Headerv1
filePath string
Результат Headerv1
        public static Headerv1 ParseHeaderv1(string filePath)
        {
            System.IO.FileStream fs = System.IO.File.OpenRead(filePath);
            byte[] data = new byte[fs.Length];
            fs.Read(data, 0, System.Convert.ToInt32(fs.Length));
            fs.Close();
            Headerv1 hdr = new Headerv1();
            hdr._data = data;
            Parser.ParseHeaderv1(ref hdr);
            return hdr;
        }
		/// <summary>

Same methods

Parser::ParseHeaderv1 ( Headerv1 &header ) : void

Usage Example

Пример #1
0
 public static Headerv1 ParseHeaderv1(string filePath)
 {
     System.IO.FileStream fs = System.IO.File.OpenRead(filePath);
     byte[] data = new byte[fs.Length];
     fs.Read(data, 0, System.Convert.ToInt32(fs.Length));
     fs.Close();
     Headerv1 hdr = new Headerv1();
     hdr._data = data;
     Parser.ParseHeaderv1(ref hdr);
     return hdr;
 }