Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCNetworkTemplates::Add[C++]

FPCNetworkTemplates.Add [Visual Basic]

[C++]

The Add method creates a new FPCNetworkTemplate object in the collection and returns a reference to it.

HRESULT Add(
  BSTR Name,
  BSTR XMLName,
  BSTR SmallBMPName,
  BSTR MediumBMPName,
  BSTR LargeBMPName,
  IFPCNetworkTemplate** ppNewNetworkTemplate
);

Parameters

Name
[in] BSTR that specifies the name of the new network template.
XMLName
[in] BSTR that specifies the name of the XML file for the new network template. The XML file specifies the network configuration and policies that will be defined in the new network template.
SmallBMPName
[in] BSTR that specifies the name of the small .bmp file for the new network template.
MediumBMPName
[in] BSTR that specifies the name of the medium .bmp file for the new network template.
LargeBMPName
[in] BSTR that specifies the name of the large .bmp file for the new network template.
ppNewNetworkTemplate
[out] Address of an interface pointer that on return points to the new IFPCNetworkTemplate interface added.

Return Values

This method can return one of the following:

[Visual Basic]

The Add method creates a new FPCNetworkTemplate object in the collection and returns a reference to it.

Function Add( _
  ByVal Name As String, _
  ByVal XMLName As String, _
  ByVal SmallBMPName As String, _
  ByVal MediumBMPName As String, _
  ByVal LargeBMPName As String _
) As FPCNetworkTemplate

Parameters

Name
[in] String that specifies the name of the new network template.
XMLName
[in] String that specifies the name of the XML file for the new network template. The XML file specifies the network configuration and policies that will be defined in the new network template.
SmallBMPName
[in] String that specifies the name of the small .bmp file for the new network template.
MediumBMPName
[in] String that specifies the name of the medium .bmp file for the new network template.
LargeBMPName
[in] String that specifies the name of the large .bmp file for the new network template.

Return Values

This method returns a reference to the FPCNetworkTemplate object added if the call is successful. Otherwise, an error is raised that can be intercepted by using an error handler.

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

FPCNetworkTemplates