Skip to main content
Table of Contents

ITMSFNCCustomWebBrowserVirtualHosting.SetVirtualHostNameToFolderMapping Method

Maps a virtual host name to a local folder path with the specified resource access kind.

API unit family: TMSFNCWebBrowser Declaring type: ITMSFNCCustomWebBrowserVirtualHosting

Syntax

FMX.TMSFNCWebBrowser.hppPascalC++
procedure SetVirtualHostNameToFolderMapping(AHostName, AFolderPath: string; AAccessKind: TTMSFNCWebBrowserHostResourceAccessKind);
virtual void __fastcall SetVirtualHostNameToFolderMapping(System::UnicodeString AHostName, System::UnicodeString AFolderPath, TTMSFNCWebBrowserHostResourceAccessKind AAccessKind) = 0;

Parameters

Name Description
AHostName Virtual host name to register, for example local.example.
AFolderPath Absolute path of the local folder to serve under the virtual host.
AAccessKind Controls which origins are allowed to access the mapped resources.