Show / Hide Table of Contents

    Class DeviceAsyncResult

    An asynchronous result object

    Inheritance
    System.Object
    DeviceAsyncResult
    ConnectGprsAsyncResult
    HttpWebRequestAsyncResult
    ListTextMessagesAsyncResult
    OpenBearerAsyncResult
    PowerOnAsyncResult
    SendMmsMessageAsyncResult
    SendTextMessageAsyncResult
    SyncNetworkTimeAsyncResult
    Implements
    System.IAsyncResult
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Eclo.nF.SIM800H
    Assembly: cs.temp.dll.dll
    Syntax
    public class DeviceAsyncResult : IAsyncResult

    Constructors

    DeviceAsyncResult(AsyncCallback, Object)

    Creates an AsyncResult

    Declaration
    public DeviceAsyncResult(AsyncCallback asyncCallback = null, object asyncState = null)
    Parameters
    Type Name Description
    System.AsyncCallback asyncCallback

    The callback to be invoked upon completion, optional

    System.Object asyncState

    The state object to be stored against this AsyncResult, optional

    Properties

    AsyncState

    The state object stored against this AsyncResult

    Declaration
    public object AsyncState { get; }
    Property Value
    Type Description
    System.Object

    AsyncWaitHandle

    The WaitHandle for this AsyncResult

    Declaration
    public WaitHandle AsyncWaitHandle { get; }
    Property Value
    Type Description
    WaitHandle

    CompletedSynchronously

    Returns true if this AsyncResult has been completed synchronously

    Declaration
    public bool CompletedSynchronously { get; }
    Property Value
    Type Description
    System.Boolean

    IsCompleted

    Returns true if this AsyncResult has been completed

    Declaration
    public bool IsCompleted { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    Complete(Exception, Boolean)

    Called when the asynchronous processing has been completed

    Declaration
    protected bool Complete(Exception exception = null, bool completedSynchronously = false)
    Parameters
    Type Name Description
    System.Exception exception

    The exception generated while processing, optional

    System.Boolean completedSynchronously

    True if the processing was completed synchronously, optional, defaults to false

    Returns
    Type Description
    System.Boolean

    Returns true if this is the first time this method has been called on this AsyncResult

    End()

    Finishes the asynchronous processing and throws an exception if one was generated Blocks until the asynchronous processing has completed

    Declaration
    public void End()

    Process()

    The method used to perform the asynchronous processing

    Declaration
    public virtual void Process()

    Implements

    System.IAsyncResult
    Back to top Copyright © 2018 Eclo Solutions
    Generated by DocFX