• Articles
  • API Documentation
  • VpnSDK
  • DataTransferEventArgs
Search Results for

    Show / Hide Table of Contents
    • VpnSDK
      • AccountMetadataException
      • APIException
      • ApiTimeoutException
      • AuthenticationException
      • BaseSDKException
      • ConnectionAlreadyEstablishedException
      • ConnectionConfigurationBuilderBase
      • ConnectionException
      • ConnectionTerminatedException
      • CoreException
      • DataTransferEventArgs
      • DnsConfigurationException
      • DoubleHopException
      • DoubleHopNotAvailableException
      • EmptyAvailableVpnProtocolsException
      • EndpointsUnreachableException
      • FetchLocationsException
      • HTTPException
      • InvalidAccountException
      • InvalidConfigurationException
      • InvalidDoubleHopConfigurationException
      • InvalidServerException
      • NotAuthorizedException
      • NotElevatedException
      • NullLocationException
      • OAuthException
      • OpenVpnConnectionConfigurationBuilder
      • RasConnectionConfigurationBuilder
      • ReconnectOnPowerEventException
      • SDKBuilder<T>
      • SDKChangeEventHandler<T>
      • SDKEventHandler
      • SDKEventHandler<T>
      • SDKOperationEventHandler
      • SDKOperationEventHandler<T>
      • ServerListException
      • TapAdapterException
      • UnknownErrorException
      • UnsupportedProtocolException
      • VPNAuthenticationException
      • VpnException
      • VpnHostServiceException
      • VpnHostServiceFileNotFoundException
      • WFPException
      • WireGuardAPIException
      • WireGuardConnectionConfigurationBuilder
    • VpnSDK.Common.Dns
      • DnsResolutionResult
      • IDnsRequestResolver
    • VpnSDK.Common.Enums
      • SplitTunnelMode
    • VpnSDK.Common.Settings
      • SplitTunnelApp
      • SplitTunnelDomain
    • VpnSDK.DTO
      • ApiHttpError
      • ApiProxyError
      • ConnectionError
      • ISDKError
      • NetworkGeolocation
      • OpenVpnConfiguration
      • RasConfiguration
      • WireguardConfiguration
    • VpnSDK.Enums
      • AccountStatus
      • AuthenticationStatus
      • ConnectionStatus
      • DnsFilteringMode
      • DriverInstallResult
      • DriverUninstallResult
      • ErrorType
      • LoadLevel
      • NetworkConnectionType
      • NetworkProtocolType
      • OpenVpnCipherType
      • OpenVpnLogLevel
      • OperationStatus
      • RefreshLocationListStatus
    • VpnSDK.Extensions
      • ExceptionExtensions
      • LocationExtensions
      • RegionLoadChecker
    • VpnSDK.Helpers
      • BatchPingUtility
      • VersionHelper
      • VpnProtocolDiagnostics
    • VpnSDK.Interfaces
      • IBestAvailable
      • IConnectionConfiguration
      • IConnectionInfo
      • IDoubleHopConfiguration
      • ILocation
      • IOpenVpnConnectionConfiguration
      • IRasConnectionConfiguration
      • IRegion
      • ISDK
      • IUser
      • IWireGuardConnectionConfiguration

    Class DataTransferEventArgs

    Holds the VPN network data transfer information.

    Inheritance
    System.Object
    DataTransferEventArgs
    Namespace: VpnSDK
    Assembly: cs.temp.dll.dll
    Syntax
    public class DataTransferEventArgs : EventArgs

    Constructors

    DataTransferEventArgs(Int64, Int64)

    Initializes a new instance of the DataTransferEventArgs class.

    Declaration
    public DataTransferEventArgs(long downloadedBytes, long uploadedBytes)
    Parameters
    Type Name Description
    System.Int64 downloadedBytes

    Downloaded data size in bytes.

    System.Int64 uploadedBytes

    Uploaded data size in bytes.

    Properties

    DownloadedBytes

    Gets the downloaded data size in bytes.

    Declaration
    public long DownloadedBytes { get; }
    Property Value
    Type Description
    System.Int64

    UploadedBytes

    Gets the uploaded data size in bytes.

    Declaration
    public long UploadedBytes { get; }
    Property Value
    Type Description
    System.Int64

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    Operators

    Equality(DataTransferEventArgs, DataTransferEventArgs)

    Checks whether the given 2 instance contains same value or not.

    Declaration
    public static bool operator ==(DataTransferEventArgs argsLeft, DataTransferEventArgs argsRight)
    Parameters
    Type Name Description
    DataTransferEventArgs argsLeft

    First instance to compare.

    DataTransferEventArgs argsRight

    Second instance to compare.

    Returns
    Type Description
    System.Boolean

    True if both the instances have same values otherwise False.

    Inequality(DataTransferEventArgs, DataTransferEventArgs)

    Checks whether the given 2 instance contains same value or not.

    Declaration
    public static bool operator !=(DataTransferEventArgs argsLeft, DataTransferEventArgs argsRight)
    Parameters
    Type Name Description
    DataTransferEventArgs argsLeft

    First instance to compare.

    DataTransferEventArgs argsRight

    Second instance to compare.

    Returns
    Type Description
    System.Boolean

    True if both the instances have same values otherwise False.

    In This Article
    • Constructors
      • DataTransferEventArgs(Int64, Int64)
    • Properties
      • DownloadedBytes
      • UploadedBytes
    • Methods
      • Equals(Object)
      • GetHashCode()
    • Operators
      • Equality(DataTransferEventArgs, DataTransferEventArgs)
      • Inequality(DataTransferEventArgs, DataTransferEventArgs)
    Back to top VpnSDK v2 Documentation - © 2023 WLVPN