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. |