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 Data
Declaration
public DataTransferEventArgs(long downloadedBytes, long uploadedBytes)
Parameters
Type | Name | Description |
---|---|---|
System. |
downloadedBytes | Downloaded data size in bytes. |
System. |
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. |
UploadedBytes
Gets the uploaded data size in bytes.
Declaration
public long UploadedBytes { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj |
Returns
Type | Description |
---|---|
System. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Data |
argsLeft | First instance to compare. |
Data |
argsRight | Second instance to compare. |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Data |
argsLeft | First instance to compare. |
Data |
argsRight | Second instance to compare. |
Returns
Type | Description |
---|---|
System. |
True if both the instances have same values otherwise False. |