Share via


FaxOutboundRoutingRules.Add method

The Add method adds an outbound routing rule (FaxOutboundRoutingRule object) to the FaxOutboundRoutingRules collection.

Syntax

FaxOutboundRoutingRules.Add( _
  ByVal lCountryCode As Long, _
  ByVal lAreaCode As Long, _
  ByVal bUseDevice As Boolean, _
  ByVal bstrGroupName As String, _
  ByVal lDeviceId As Long _
) As FaxOutboundRoutingRule

Parameters

lCountryCode

Type: Long

A Long value that specifies the country/region code to associate with the outbound routing rule. Specifying frrcANY_CODE will add a rule that applies to any country/region code.

lAreaCode

Type: Long

Specifies a Long value that indicates the area code to associate with the outbound routing rule. Specifying frrcANY_CODE will add a rule that applies to any area code within the specified country/region code.

bUseDevice

Type: Boolean

Specifies a Boolean value that indicates whether the outbound routing rule points to a single fax device rather than to a group of devices.

bstrGroupName

Type: String

Specifies a null-terminated string that contains the name of the outbound routing group to which the new routing rule belongs. If bUseDevice is set to True, this should be an empty string.

lDeviceId

Type: Long

Specifies the device to associate with the outbound routing rule. If bUseDevice is set to False, this parameter is ignored.

Return value

Type: FaxOutboundRoutingRule**

A FaxOutboundRoutingRule object.

Remarks

This method can also return remote procedure call (RPC) return values. For more information, see RPC Return Values.

To read or to write to this property, a user must have the farMANAGE_CONFIG access right.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
FaxComex.h
DLL
Fxscomex.dll

See also

Visual Basic Example

FaxOutboundRoutingRules

IFaxOutboundRoutingRules