--- myst: substitutions: method: |- ```{image} /img/code_reference/net_library/method.ico ``` prop: |- ```{image} /img/code_reference/net_library/prop.ico ``` --- # MediaUpdateOptions Class Specifies options to use for updating Media Resources. **Namespace:** powerGate.Erp.Client\ **Assembly:** powerGate.Erp.Client.dll ## Inheritance Hierarchy [System.Object]()\  **powerGate.Erp.Client.MediaUpdateOptions** ## Syntax ```{code-block} CSharp :linenos: public class MediaUpdateOptions ``` The MediaUpdateOptions type exposes the following members. ## Constructors | Name | Description | |---------------------------------|-------------------------------------------------------------| | {{method}} MediaUpdateOptions() | Initializes a new instance of the MediaUpdateOptions class. | ## Properties | Type | Name | Description | |---------------------------------------|-------------|---------------------------------------------------------------------------------------| | {{prop}} Dictionary\ | Keys | The reference properties for searching the item which uniquely identifies the Entity. | | {{prop}} string | ContentType | Specifies the content type of the HTTP request. | | {{prop}} [Stream][] | Data | Stream of Data to upload to the ERP System. | [Stream]: https://msdn.microsoft.com/en-us/library/system.io.stream%28v=vs.110%29.aspx ## Remarks The **ContentType** is used to specify the nature of the Data being uploaded. With the appropriate content type the web browser can open the Data with the proper extension/plugin.\ If the content type contains text (e.g text/plain, text/html...) as type or json , xml (e.g application/json, application/xml...) as subtype, then the content of the Data is uploaded to the server as UTF-8 Encoded text. ## See also **Reference** - [powerGate.Erp.Client namespace]()