SetServerFarm Method of the IFPCLoadBalancingConfig Interface

The SetServerFarm method sets the server farm that will be associated with the Web publishing rule.

C++

Syntax

HRESULT SetServerFarm(
  [in]  BSTR ServerFarmName
);

Parameters

  • ServerFarmName
    BSTR that specifies the name of the server farm to be associated with the Web publishing rule.

Return Value

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

Visual Basic

Syntax

Sub SetServerFarm( _
  ByVal ServerFarmName As String _
)

Parameters

  • ServerFarmName
    String value that specifies the name of the server farm to be associated with the Web publishing rule.

Return Value

This method does not return a value.

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

FPCLoadBalancingConfig

Send comments about this topic to Microsoft

Build date: 6/30/2010