Platform SDK: Fax Services

FaxRoutingMethods Object (Visual Basic)

The FaxRoutingMethods object represents a collection of FaxRoutingMethod objects. The FaxRoutingMethods object permits a fax client Visual Basic application to enumerate the fax routing methods associated with a fax port, and to create FaxRoutingMethod objects for individual routing methods. There is one FaxRoutingMethod object for each routing method associated with the port.

The FaxRoutingMethods 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 FaxRoutingMethods object's type library information in Visual Basic syntax.

To create a FaxRoutingMethods object

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

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

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

Dim RoutingMethod As Object
Dim lCount As Long
RoutingMethod = RoutingMethods.GetItem(lCount)
Count
LONG
Read-only
 
Number of fax routing methods associated with the connected fax port.

Dim lCount As Long
lCount = objFaxRoutingMethods.Count