Microsoft Internet Security and Acceleration Server 2004 SDK

IFPCPathMappings::Add[C++]

FPCPathMappings.Add [Visual Basic]

[C++]

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

HRESULT Add(
  BSTR InternalPath,
  VARIANT_BOOL SameAsInternal,
  BSTR ExternalPath,
  IFPCPathMapping** ppNewItem
);

Parameters

InternalPath
[in] BSTR that specifies the internal path.
SameAsInternal
[in] Boolean value that specifies whether the external path is the same as the internal path.
ExternalPath
[in] BSTR that specifies the external path. This parameter is ignored if the SameAsInternal parameter is set to VARIANT_TRUE.
ppNewItem
[out] Address of an interface pointer that on return points to the new IFPCPathMapping interface created.

Return Values

This method can return one of the following:

[Visual Basic]

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

Function Add( _
  ByVal InternalPath As String, _
  ByVal SameAsInternal As Boolean, _
  ByVal ExternalPath As String _
) As FPCPathMapping

Parameters

InternalPath
[in] String that specifies the internal path.
SameAsInternal
[in] Boolean value that specifies whether the external path is the same as the internal path.
ExternalPath
[in] String that specifies the external path. This parameter is ignored if the SameAsInternal parameter is set to True.

Return Values

This method returns a reference to the new FPCPathMapping object if 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

FPCPathMappings