Share via


NetworkConnectionType Property of the IFPCNetwork Interface

The NetworkConnectionType property gets or sets a value from the FpcNetworkConnectionType enumerated type that specifies the type of connection to the network, such as a connection through a network adapter, a virtual private network (VPN) connection, a dial-up connection, or an Internet Protocol security (IPSec) connection.

C++

HRESULT put_NetworkConnectionType(
    FpcNetworkConnectionType ConnectionType
);
HRESULT get_NetworkConnectionType(
    FpcNetworkConnectionType* pConnectionType
);

Parameters

  • ConnectionType
    Value from the FpcNetworkConnectionType enumerated type that specifies the type of connection to the network.

  • pConnectionType
    Pointer to a variable that on return receives a value from the FpcNetworkConnectionType enumerated type specifying the type of connection to the network.

Return Value

These property methods return S_OK if the call is successful; otherwise, they return an error code.

Visual Basic

Property NetworkConnectionType As FpcNetworkConnectionType

Property Value

Value from the FpcNetworkConnectionType enumerated type that specifies the type of connection to the network.

Remarks

This property is read/write. Its default value is fpcAdapter, which indicates that the connection is through a network adapter.

Requirements

Client Requires Windows 7 or Windows Vista.
Server Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2.
Version Requires Forefront Threat Management Gateway (TMG) 2010.
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCNetwork

Send comments about this topic to Microsoft

Build date: 6/30/2010