FPCAdapter object

Applies to: desktop apps only

The FPCAdapter object represents a single network adapter of a Forefront TMG computer. You can connect to the Internet through either a direct or dial-up connection. If you choose a direct connection, you need to set up an external network adapter.

This object represents that adapter and can be an element of an FPCAdapters collection or an FPCAllAdapters collection.

Ff824096.bkbutton(en-us,VS.85).png Click here to see the Forefront TMG object hierarchy.

Members

The FPCAdapter object has these types of members:

  • Methods
  • Properties

Methods

The FPCAdapter object has these methods.

Method Description
EnableAutoDnsDetection

Enables the automatic detection of DNS servers.

EnableDhcp

Enables the network adapter to obtain an IP address from a DHCP server.

GetDeviceGuid

Gets the string-formatted globally unique identifier (GUID) of the network adapter.

GetPrimaryDnsServer

Gets the IP address of the primary DNS server of the network adapter.

GetPrimaryGateway

Gets the primary gateway of the network adapter.

GetPrimaryIpAddress

Gets the primary IP address of the network adapter.

GetPrimarySubnetMask

Gets the primary subnet mask of the network adapter.

GetSecondaryDnsServer

Gets the IP address of the secondary DNS server of the network adapter.

IsIpInAddressSet

Determines whether an IP address is included in the address set of the adapter.

SetPrimaryDnsServer

Sets the IP address of the primary DNS server of the network adapter.

SetPrimaryGateway

Sets the primary gateway of the network adapter.

SetPrimaryIpAddress

Sets the primary IP address of the network adapter.

SetPrimarySubnetMask

Sets the primary subnet mask of the network adapter.

SetSecondaryDnsServer

Sets the IP address of the secondary DNS server of the network adapter.

 

Properties

The FPCAdapter object has these properties.

Property Access type Description

Addresses

Read/write

Gets or sets a comma-delimited list of all IP addresses bound to the network adapter.

AutoDnsServerDetection

Read-only

Gets a Boolean value that indicates whether DNS servers will be detected automatically.

ConnectionSpecificDnsSuffix

Read-only

Gets the connection-specific DNS suffix of the network adapter.

ConnectionType

Read/write

Gets or sets or sets a value from the FpcAdapterConnectionType enumerated type that specifies the type of connection to the network adapter.

Description

Read-only

Gets the description of the network adapter.

DhcpEnabled

Read-only

Gets a Boolean value that indicates whether the network adapter uses the Dynamic Host Configuration Protocol (DHCP).

DhcpServer

Read-only

Gets the IP address of the DHCP server for the network adapter.

DnsServers

Read-only

Gets a comma-delimited list of all DNS servers defined for the network adapter.

Enabled

Read-only

Gets a Boolean value that indicates whether the adapter is enabled.

FriendlyName

Read-only

Gets the friendly name of the network adapter.

Gateways

Read/write

Gets or sets a comma-delimited list of all the gateways configured on the network adapter.

IpAddresses

Read-only

Gets a comma-delimited list of all IP addresses bound to the network adapter. (This property is deprecated in Forefront TMG.)

IpAddressSet

Read-only

Gets the IP address set for the network adapter.

IpRanges

Read-only

Gets an FPCReadOnlyIpRangeSet collection that contains objects representing the IP ranges for the adapter.

PhysicalAddress

Read-only

Gets the physical address of the network adapter.

PrimaryWinsServer

Read-only

Gets the IP address of the primary WINS server of the network adapter.

SecondaryWinsServer

Read-only

Gets the IP address of the secondary WINS server of the network adapter.

State

Read-only

Gets a value from the FpcAdapterState enumerated type that specifies the state of the network adapter.

SubnetMasks

Read/write

Gets or sets a comma-delimited list of all subnet masks configured on the network adapter.

 

Interfaces for C++ Programming

This object implements the IFPCAdapter, IFPCAdapter2, and IFPCAdapter3 interfaces.

Requirements

Minimum supported client

Windows Vista, None supported

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

See also

COM Objects

 

 

Build date: 7/12/2010