Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCArray::SelectNetworkTemplateAndPolicy[C++]

FPCArray.SelectNetworkTemplateAndPolicy [Visual Basic]

[C++]

The SelectNetworkTemplateAndPolicy method sets a selected network template and default policy for the array.

HRESULT SelectNetworkTemplateAndPolicy(
  BSTR networkTemplate,
  BSTR defaultPolicy
);

Parameters

networkTemplate
[in] String value that specifies the network template to be used.
defaultPolicy
[in] String value that specifies the default policy to be used.

Return Values

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

Remarks

This method deletes all existing networks, network rules, and policy rules, and replaces them with the network topology and policy selected.

[Visual Basic]

The SelectNetworkTemplateAndPolicy method sets a selected network template and default policy for the array.

Sub SelectNetworkTemplateAndPolicy( _
  ByVal networkTemplate As String, _
  ByVal defaultPolicy As String _
)

Parameters

networkTemplate
[in] String value that specifies the network template to be used.
defaultPolicy
[in] String value that specifies the default policy to be used.

Return Values

This method has no return values.

Remarks

This method deletes all existing networks, network rules, and policy rules, and replaces them with the network topology and policy selected.

Requirements

Server: Requires Windows Server 2003 or Windows 2000.
Version: Requires Internet Security and Acceleration Server 2004.
Header: Declared in Msfpccom.idl.
Library: Use Microsoft Internet Security and Acceleration Server 2004 Administration Library.

See Also

FPCArray