C# Класс Sage.SData.Client.Mime.MimePart

Represents a MIME protocol message part.
Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
Dispose ( ) : void
MimePart ( Stream content ) : System

Initializes a new instance of the MimePart class using the supplied content.

MimePart ( Stream content, WebHeaderCollection headers ) : System

Initializes a new instance of the MimePart class using the supplied content and headers.

WriteTo ( StreamWriter writer, string boundary ) : void

Writes the MIME part to the specified stream writer.

Приватные методы

Метод Описание
SetHeaderValue ( HttpRequestHeader name, string value ) : void
SetHeaderValue ( string name, string value ) : void

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

MimePart() публичный Метод

Initializes a new instance of the MimePart class using the supplied content.
public MimePart ( Stream content ) : System
content Stream The content of the MIME part.
Результат System

MimePart() публичный Метод

Initializes a new instance of the MimePart class using the supplied content and headers.
public MimePart ( Stream content, WebHeaderCollection headers ) : System
content Stream The content of the MIME part.
headers System.Net.WebHeaderCollection The headers of the MIME part.
Результат System

WriteTo() публичный Метод

Writes the MIME part to the specified stream writer.
public WriteTo ( StreamWriter writer, string boundary ) : void
writer System.IO.StreamWriter The destination writer to write to.
boundary string The unique string used to designated the beginning of the part.
Результат void