Foundation.NSUrlSessionTask Members

The members of Foundation.NSUrlSessionTask are listed below.

See Also: Inherited members from Foundation.NSObject

Public Constructors

Default constructor, initializes a new instance of this class.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
BytesExpectedToReceivelong. The number of bytes this task expects to receive in the response body.
[read-only]
BytesExpectedToSendlong. The number of bytes this task expects to send in the request body. Read-only.
[read-only]
BytesReceivedlong. The number of bytes this task has received in the response body. Read-only.
[read-only]
BytesSentlong. The number of bytes that this task has sent in the request body. Read-only.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
CurrentRequestNSUrlRequest. The NSUrlRequest being handled by the task. Read-only.
[read-only]
ErrorNSError. If the task failed, contains the error reason. Read-only.
[read-only]
OriginalRequestNSUrlRequest. The NSUrlRequest passed when this task was created. Read-only.
Priorityfloat. Documentation for this section has not yet been entered.
[read-only]
ResponseNSUrlResponse. The server's response to the active request. Read-only.
[read-only]
StateNSUrlSessionTaskState. The current state of this task. Read-only.
TaskDescriptionstring. A human-meaningful description of this task.
[read-only]
TaskIdentifiernuint. An identifier that uniquely identifies this task within a session. Read-only.
[read-only]
static
TransferSizeUnknownlong. Represents the value associated with the constant NSUrlSessionTransferSizeUnknown

Public Methods

Cancel()
Cancels this task.
Copy(NSZone) : NSObject
Performs a copy of the underlying Objective-C object.
Resume()
Resumes this task, if it is suspended.
Suspend()
Temporarily suspends this task.

Protected Methods

override
Dispose(bool)
Releases the resources used by the NSUrlSessionTask object.