Class PvNetworkAdapter
Represents one Ethernet network adapter on a system (the PC)
Implements
Inherited Members
Namespace: eBUSDotNet
Assembly: eBUSDotNet.dll
Syntax
public class PvNetworkAdapter : PvInterface, IDisposable
Constructors
View SourcePvNetworkAdapter()
Constructor.
Declaration
public PvNetworkAdapter()
Properties
View SourceDefaultGateway
Gets the default gateway configured on the adapter.
Declaration
public string DefaultGateway { get; }
Property Value
| Type | Description |
|---|---|
| string |
Description
Gets the description of the network adapter.
Declaration
public string Description { get; }
Property Value
| Type | Description |
|---|---|
| string |
IPAddressCount
Gets the number of IP addresses associated with the adapter.
Declaration
public uint IPAddressCount { get; }
Property Value
| Type | Description |
|---|---|
| uint |
IsPleoraDriverInstalled
Gets whether the Pleora driver is installed for the adapter.
Declaration
public bool IsPleoraDriverInstalled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
MACAddress
Gets the MAC address of the network adapter.
Declaration
public string MACAddress { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceAssign(PvNetworkAdapter)
Equal operator: copies the object.
Declaration
public PvNetworkAdapter Assign(PvNetworkAdapter aFrom)
Parameters
| Type | Name | Description |
|---|---|---|
| PvNetworkAdapter | aFrom | The source for the copy. |
Returns
| Type | Description |
|---|---|
| PvNetworkAdapter | Reference to the object aFrom was copied to. |
Dispose(bool)
Dispose
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
View SourceGetIPAddress(uint)
Returns the IP address of the network adapter.
Declaration
public string GetIPAddress(uint aIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | aIndex | The IP configuration index. |
Returns
| Type | Description |
|---|---|
| string | One of the IP addresses of the network adapter. |
GetSubnetMask(uint)
Returns the subnet mask of one of the IP addresses of the network adapter.
Declaration
public string GetSubnetMask(uint aIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | aIndex | The IP configuration index. |
Returns
| Type | Description |
|---|---|
| string | One of the IP addresses of the network adapter. |