The GetContainingServer method retrieves the FPCServer object (IFPCServer interface in C++) that represents the current Forefront TMG computer.
Note This method is only relevant when executed on a computer which runs the Microsoft Firewall service.
HRESULT GetContainingServer( [out] IFPCServer** ppItem );
Address of an interface pointer that on return points to the IFPCServer interface that represents the current Forefront TMG computer.
This method can return one of the following:
Function GetContainingServer() As FPCServer
This method returns a reference to an FPCServer object if successful. Otherwise, an error is raised that can be intercepted by using an error handler. In particular, an ERROR_FILE_NOT_FOUND is raised if the FPCServer object could not be found because the method was called on a remote management computer or a Configuration Storage server on which the Microsoft Firewall service is not installed.
Dim root As New FPCLib.FPC Dim serverName As String serverName = root.GetContainingServer.Name
Client | Requires Windows Vista or Windows XP. |
---|---|
Server | Requires Windows Server 2008. |
Version | Requires Forefront Threat Management Gateway (TMG). |
IDL |
Declared in Msfpccom.idl. |
DLL |
Requires Msfpccom.dll. |
Send comments about this topic to Microsoft
Build date: 11/30/2009
© 2008 Microsoft Corporation. All rights reserved.