Class Multipart
Faciliates working with multipart encoding
Inheritance
System.Object
Multipart
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NFX.Web.dll
Syntax
public sealed class Multipart
Constructors
Multipart()
Declaration
Multipart(IEnumerable<Multipart.Part>)
Declaration
public Multipart(IEnumerable<Multipart.Part> parts)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<Multipart.Part> |
parts |
|
Fields
NOT_FOUND_POS
Declaration
public const int NOT_FOUND_POS = -1
Field Value
Type |
Description |
System.Int32 |
|
Properties
Parts
Declaration
public Registry<Multipart.Part> Parts { get; }
Property Value
Methods
Encode(MemoryStream, Encoding)
Declaration
public Multipart.EncodedContent Encode(MemoryStream stream, Encoding encoding = null)
Parameters
Type |
Name |
Description |
System.IO.MemoryStream |
stream |
|
System.Text.Encoding |
encoding |
|
Returns
Encode(Encoding)
Declaration
public Multipart.EncodedContent Encode(Encoding encoding = null)
Parameters
Type |
Name |
Description |
System.Text.Encoding |
encoding |
|
Returns
ParseContentType(String)
Declaration
public static string ParseContentType(string contentType)
Parameters
Type |
Name |
Description |
System.String |
contentType |
|
Returns
Type |
Description |
System.String |
|
ReadFromBytes(Byte[], ref String, Encoding)
Declaration
public static Multipart ReadFromBytes(byte[] buffer, ref string boundary, Encoding encoding = null)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
|
System.String |
boundary |
|
System.Text.Encoding |
encoding |
|
Returns
ReadFromStream(Stream, ref String, Encoding)
Declaration
public static Multipart ReadFromStream(Stream stream, ref string boundary, Encoding encoding = null)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
System.String |
boundary |
|
System.Text.Encoding |
encoding |
|
Returns
ToJSONDataMap()
Declaration
public JSONDataMap ToJSONDataMap()
Returns
Extension Methods