Platform SDK: Fax Services

FaxPorts Object (Visual Basic)

The FaxPorts object represents a collection of FaxPort objects. The FaxPorts object permits a fax client Visual Basic application to enumerate the fax ports associated with a connected fax server, and to create FaxPort objects for those ports. There is one FaxPort object for each port associated with the server.

The FaxPorts object has the following properties:

When to Implement

You should not implement this class. The Microsoft standard implementation provides complete functionality. You can use the Visual Basic Object Browser to view the FaxPorts object's type library information in Visual Basic syntax.

To create a FaxPorts object

  1. Call the Visual Basic CreateObject function to create a FaxServer object.
  2. Call the GetPorts method of the FaxServer object to create a FaxPorts object on the connected fax server.

Following is a list of the Visual Basic properties of FaxPorts objects.

Property Visual Basic Example
Item
LONG
Read-only
 
Creates a FaxPort object for a specified fax port. Valid values for this property are in the range from 1 to n, where n is the number of FaxPort objects returned by a call to the Count property.

Dim Port As Object
Dim lCount As Long
Port = Ports.GetItem(lCount)
Count
LONG
Read-only
 
Number of fax ports associated with the connected fax server.

Dim lPorts As Long
lPorts = objFaxPorts.Count