System::Net::FileWebRequest class
Contents
[
Hide
]FileWebRequest class
Provides implementation of the WebRequest abstract class to work with the file system. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
class FileWebRequest : public System::Net::WebRequest
Methods
Method | Description |
---|---|
Abort() override | Aborts the current request. |
BeginGetRequestStream(AsyncCallback, System::SharedPtr<Object>) override | Initiates an asynchronous operation to get a stream for writing data to the resource. |
BeginGetResponse(AsyncCallback, System::SharedPtr<Object>) override | Initiates an asynchronous request for the resource. |
EndGetRequestStream(System::SharedPtr<IAsyncResult>) override | Waits until the specified asynchronous operation to get a stream completes. |
EndGetResponse(System::SharedPtr<IAsyncResult>) override | Waits until the specified asynchronous request for the resource completes. |
FileWebRequest(System::SharedPtr<Uri>) | Constructs a new instance. |
get_ContentType() override | Gets the MIME type of the request. |
get_Headers() override | Gets the collection of the HTTP headers. |
get_Method() override | Gets the HTTP method. |
get_RequestUri() override | Returns the request URI. |
GetResponse() override | Returns the web response associated with the current web request. |
set_ContentType(String) override | Sets the MIME type of the request. |
set_Headers(System::SharedPtr<WebHeaderCollection>) override | Sets the collection of the HTTP headers. |
set_Method(String) override | Sets the HTTP method. |
set_Timeout(int) override | RTTI information. |
See Also
- Class WebRequest
- Namespace System::Net
- Library Aspose.PUB for C++