AddRequestField Method
Adds a field to the data in the request.
Syntax
int AddRequestField(const char* lpszName, const char* lpszValue, int iValueType);
INT AddRequestField(LPCWSTR lpszName, LPCWSTR lpszValue, INT iValueType);
- (void)addRequestField:(NSString*)name :(NSString*)value :(int)valueType;
public func addRequestField(_ name: String, _ value: String, _ valueType: Int32) throws -> Void
Remarks
This method can be used to extend the requests constructed by the class. When this method is called, the component will add the specified field to the end of the request.
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)