anmar.SharpMimeTools.SharpMimeHeader.GetHeaderField C# (CSharp) 메소드

GetHeaderField() 공개 메소드

Returns the requested header field body.
public GetHeaderField ( System name, System defaultvalue, bool uncomment, bool rfc2047decode ) : System.String
name System Header field name
defaultvalue System Value to return when the requested field is not present
uncomment bool true to uncomment using ; false to return the value unchanged.
rfc2047decode bool true to decode ; false to return the value unchanged.
리턴 System.String
        public System.String GetHeaderField( System.String name, System.String defaultvalue, bool uncomment, bool rfc2047decode )
        {
            System.String tmp = this.getProperty(name);
            if ( tmp==null )
                tmp = defaultvalue;
            else {
                if ( uncomment )
                    tmp = anmar.SharpMimeTools.SharpMimeTools.uncommentString(tmp);
                if ( rfc2047decode )
                    tmp = anmar.SharpMimeTools.SharpMimeTools.rfc2047decode(tmp);
            }
            return tmp;
        }