IFaxOutboundRoutingRules::RemoveByCountryAndArea method (faxcomex.h)
The IFaxOutboundRoutingRules::RemoveByCountryAndArea method removes an outbound routing rule (FaxOutboundRoutingRule object) from the collection using the routing rule's country/region code and area code.
Syntax
HRESULT RemoveByCountryAndArea(
long lCountryCode,
long lAreaCode
);
Parameters
lCountryCode
Type: long
A long value that specifies the country/region code of the outbound routing rule to remove from the collection. Specifying frrcANY_CODE will remove a rule that applies to all country/region codes.
lAreaCode
Type: long
A long value that specifies the area code of the outbound routing rule to remove from the collection. Specifying frrcANY_CODE will remove a rule that applies to all area codes within the specified country/region code.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
You cannot set both lCountryCode and lAreaCode to frrcANY_CODE because this is equivalent to specifying the default outbound routing rule, which cannot be removed.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | faxcomex.h |
DLL | Fxscomex.dll |