Share via


IFPCServer::InstallationDirectory property

Applies to: desktop apps only

The InstallationDirectory property gets the Forefront TMG installation directory on the server.

This property is read-only.

Syntax

HRESULT get_InstallationDirectory(
  BSTR *pbstrInstallationDirectory
);
' Data type: String

Property InstallationDirectory( _
  ByVal pbstrInstallationDirectory As BSTR _
) As String

Property value

String that specifies the Forefront TMG installation directory on the server.

Error codes

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

Remarks

This property is read-only.

Examples

This VBScript script displays the Forefront TMG installation directory on the local computer. It does not include error handling.

' Create the root object.
Dim root  ' The FPCLib.FPC root object
Set root = CreateObject("FPC.Root")
'Declare a server object.
Dim server  ' An FPCServer object
' Get a reference to the server object.
Set server = root.GetContainingServer
' Display the installation directory.
WScript.Echo "The Forefront TMG installation directory is " & server.InstallationDirectory

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 (64-bit only)

Version

Forefront Threat Management Gateway (TMG) 2010

IDL

Msfpccom.idl

DLL

Msfpccom.dll

See also

FPCServer

 

 

Build date: 7/12/2010