Provides an OBEX implementation of the WebRequest class.
But unlike ObexWebRequest it will throw an
exception on error.
| C# | Visual Basic |
public class ObexWebRequest2 : ObexWebRequest
Public Class ObexWebRequest2 _ Inherits ObexWebRequest
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| ObexWebRequest2(Uri) |
Create a new Obex request with the specified Uri.
| |
| ObexWebRequest2(Uri, Stream) |
[Advanced usage]
Create a new Obex request with the specified Uri
and the open Stream connection to an OBEX server.
| |
| Abort()()() | Aborts the Request (Inherited from WebRequest.) | |
| BeginGetRequestStream(AsyncCallback, Object) | When overridden in a descendant class, provides an asynchronous version of the GetRequestStream()()() method. (Inherited from WebRequest.) | |
| BeginGetResponse(AsyncCallback, Object) | When overridden in a descendant class, begins an asynchronous request for an Internet resource. (Inherited from WebRequest.) | |
| ConnectionGroupName | When overridden in a descendant class, gets or sets the name of the connection group for the request. (Inherited from WebRequest.) | |
| ContentLength |
Gets or sets the Length OBEX header.
(Inherited from ObexWebRequest.) | |
| ContentType |
Gets or sets the value of the Type OBEX header.
(Inherited from ObexWebRequest.) | |
| Credentials | When overridden in a descendant class, gets or sets the network credentials used for authenticating the request with the Internet resource. (Inherited from WebRequest.) | |
| EndGetRequestStream(IAsyncResult) | When overridden in a descendant class, returns a Stream for writing data to the Internet resource. (Inherited from WebRequest.) | |
| EndGetResponse(IAsyncResult) | When overridden in a descendant class, returns a WebResponse. (Inherited from WebRequest.) | |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetRequestStream()()() |
Gets a Stream object to use to write request data.
(Inherited from ObexWebRequest.) | |
| GetResponse()()() |
Returns the OBEX server response.
(Overrides ObexWebRequest.GetResponse()()().) | |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| Headers | ||
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Method |
Gets or sets the method for the request.
(Inherited from ObexWebRequest.) | |
| PreAuthenticate | When overridden in a descendant class, indicates whether to pre-authenticate the request. (Inherited from WebRequest.) | |
| Proxy |
Not Supported - do not use, this will throw an exception.
(Inherited from ObexWebRequest.) | |
| ReadFile(String) |
Reads the contents of the specified file to the request stream.
(Inherited from ObexWebRequest.) | |
| RequestUri |
Gets the original Uniform Resource Identifier (URI) of the request.
(Inherited from ObexWebRequest.) | |
| Timeout |
Gets or sets the time-out value for the GetResponse()()() method.
(Inherited from ObexWebRequest.) | |
| ToString()()() | (Inherited from Object.) |
| Object | ||||
| MarshalByRefObject | ||||
| WebRequest | ||||
| ObexWebRequest | ||||
| ObexWebRequest2 | ||||