InternalSet() private method

private InternalSet ( string name, string value ) : void
name string
value string
return void
Ejemplo n.º 1
0
 internal void Set(string contentDisposition, HeaderCollection headers)
 {
     this.disposition = contentDisposition;
     this.ParseValue();
     headers.InternalSet(MailHeaderInfo.GetString(MailHeaderID.ContentDisposition), this.ToString());
     this.isPersisted = true;
 }
Ejemplo n.º 2
0
 internal void Set(string contentType, HeaderCollection headers)
 {
     _type = contentType;
     ParseValue();
     headers.InternalSet(MailHeaderInfo.GetString(MailHeaderID.ContentType), ToString());
     _isPersisted = true;
 }
Ejemplo n.º 3
0
 internal void PersistIfNeeded(HeaderCollection headers, bool forcePersist)
 {
     if ((this.IsChanged || !this.isPersisted) || forcePersist)
     {
         headers.InternalSet(MailHeaderInfo.GetString(MailHeaderID.ContentDisposition), this.ToString());
         this.isPersisted = true;
     }
 }
Ejemplo n.º 4
0
 internal void PersistIfNeeded(HeaderCollection headers, bool forcePersist)
 {
     if (IsChanged || !_isPersisted || forcePersist)
     {
         headers.InternalSet(MailHeaderInfo.GetString(MailHeaderID.ContentType), ToString());
         _isPersisted = true;
     }
 }
Ejemplo n.º 5
0
 internal void Set(string contentDisposition, HeaderCollection headers)
 {
     // we don't set ischanged because persistence was already handled
     // via the headers.
     _disposition = contentDisposition;
     ParseValue();
     headers.InternalSet(MailHeaderInfo.GetString(MailHeaderID.ContentDisposition), ToString());
     _isPersisted = true;
 }
Ejemplo n.º 6
0
 internal void PersistIfNeeded(HeaderCollection headers, bool forcePersist)
 {
     if (IsChanged || !isPersisted || forcePersist)
     {
         headers.InternalSet(MailHeaderInfo.GetString(MailHeaderID.ContentDisposition), ToString());
         isPersisted = true;
     }
 }
Ejemplo n.º 7
0
 internal void Set(string contentDisposition, HeaderCollection headers)
 {
     // we don't set ischanged because persistence was already handled
     // via the headers.
     disposition = contentDisposition;
     ParseValue();
     headers.InternalSet(MailHeaderInfo.GetString(MailHeaderID.ContentDisposition), ToString());
     isPersisted = true;
 }
 internal void Set(string contentType, HeaderCollection headers)
 {
     this.type = contentType;
     this.ParseValue();
     headers.InternalSet(MailHeaderInfo.GetString(MailHeaderID.ContentType), this.ToString());
     this.isPersisted = true;
 }
 internal void PersistIfNeeded(HeaderCollection headers, bool forcePersist)
 {
     if ((this.IsChanged || !this.isPersisted) || forcePersist)
     {
         headers.InternalSet(MailHeaderInfo.GetString(MailHeaderID.ContentType), this.ToString());
         this.isPersisted = true;
     }
 }
 internal void Set(string contentDisposition, HeaderCollection headers)
 {
     this.disposition = contentDisposition;
     this.ParseValue();
     headers.InternalSet(MailHeaderInfo.GetString(MailHeaderID.ContentDisposition), this.ToString());
     this.isPersisted = true;
 }