Class ObjectToMultipartDataByteArrayConverter
Converts System.Object to multi-part form-data.
Inheritance
System.Object
ObjectToMultipartDataByteArrayConverter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.WebApi.Formatters.FormMultipart.Converters
Assembly: Cqrs.WebApi.dll
Syntax
public class ObjectToMultipartDataByteArrayConverter
Constructors
ObjectToMultipartDataByteArrayConverter(MultipartFormatterSettings)
Instantiate and initialise a new instance of ObjectToMultipartDataByteArrayConverter
Declaration
public ObjectToMultipartDataByteArrayConverter(MultipartFormatterSettings settings)
Parameters
Type | Name | Description |
---|---|---|
MultipartFormatterSettings | settings | The MultipartFormatterSettings to use. |
Methods
Convert(Object, String)
Converts the provided value
to multi-part form-data using the provided boundary
.
Declaration
public byte[] Convert(object value, string boundary)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | |
System.String | boundary |
Returns
Type | Description |
---|---|
System.Byte[] |