-
-
Notifications
You must be signed in to change notification settings - Fork 11
libcURL.MultipartForm.Operator_Convert
Andrew Lambert edited this page Mar 15, 2017
·
18 revisions
#libcURL.MultipartForm.Operator_Convert
Sub Operator_Convert(FromDict As Dictionary)| Name | Type | Comment |
|---|---|---|
| FromDict | Dictionary |
An HTML form. |
This method overloads the conversion operator(=), permitting implicit and explicit conversion from a Dictionary into a MultipartForm. The dictionary contains NAME:VALUE pairs comprising HTML form elements: NAME is a string containing the form-element name; VALUE may be a string or a FolderItem.
Dim Form As New Dictionary
Form.Value("name") = "Bob"
Form.Value("File") = SomeFolderItem
Dim curlform As libcURL.MultipartForm = Form ' convert' Using a paramarray of Pairs to construct a Dictionary which is then converted into a MultipartForm
Dim m As libcURL.MultipartForm = New Dictionary("name":"Bob", "File":SomeFolderItem)Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-26 Andrew Lambert, offered under the CC BY-SA 3.0 License.