Share via


IFPCVpnConfiguration::PrimaryDNSServer property

Applies to: desktop apps only

The PrimaryDNSServer property gets the name of the primary Domain Name System (DNS) server.

This property is read-only.

Syntax

HRESULT get_PrimaryDNSServer(
  BSTR *pbstrPrimaryDNSServer
);
' Data type: String

Property PrimaryDNSServer( _
  ByVal pbstrPrimaryDNSServer As BSTR _
) As String

Property value

String value that specifies the name of the primary DNS server.

Error codes

This property method returns S_OK if the call is successful; otherwise, it returns an error code.

Remarks

This property is read-only. It can be set using the SetDNSConfiguration method. Its default value is an empty string.

Requirements

Minimum supported client

Windows Vista

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

DLL

Msfpccom.dll

See also

FPCVpnConfiguration

 

 

Build date: 7/12/2010