AffinityType Property of the IFPCLoadBalancingConfig Interface

The AffinityType property gets or sets a value from the FpcLoadBalancingAffinityType enumerated type that specifies the type of affinity that will be maintained with the published server farm.

[C++]
HRESULT put_AffinityType(
	FpcLoadBalancingAffinityType* AffinityType
);
HRESULT get_AffinityType(
	FpcLoadBalancingAffinityType pAffinityType
);

Parameters

AffinityType

Value from the FpcLoadBalancingAffinityType enumerated type that specifies the type of affinity that will be maintained with the published server farm.

pAffinityType

Pointer to a variable that on return receives a value from the FpcLoadBalancingAffinityType enumerated type specifying the type of affinity that will be maintained with the published server farm.

Return Value

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

[Visual Basic]
Property AffinityType As FpcLoadBalancingAffinityType

Property Value

Value from the FpcLoadBalancingAffinityType enumerated type that specifies the type of affinity that will be maintained with the published server farm.

Remarks

This property is read/write. Its default value is fpcSessionAffinity, which indicates that cookie-based load balancing with session affinity will be maintained with the published server farm. This means that all requests related to the same session, as indicated by the presence of the same unique cookie for the session, will be forwarded to the same server in the server farm.

When this property is set to fpcIPAffinity, client IP affinity will be maintained with the published server farm. This means that all requests from the same client (source) IP address will be forwarded to the same server in the server farm.

Requirements

Client Requires Windows Vista or Windows XP.
Server Requires Windows Server 2008.
Version Requires Forefront Threat Management Gateway (TMG).
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCLoadBalancingConfig


Send comments about this topic to Microsoft

Build date: 11/30/2009

© 2008 Microsoft Corporation. All rights reserved.