RequestVatInfo.getCodeSums Method

Retrieve the sums of each VAT code associated with the current search result in a dictionary.
Public Function getCodeSums( _ 
Optional ByVal removeZeroValues As Boolean = False _ 
) As Dictionary(Of String, Double)
This language is not supported or no code example is available.
public Dictionary<string, double> getCodeSums( 
bool removeZeroValues = False 
)
This language is not supported or no code example is available.

Parameters

removeZeroValues
bool

Default Value False. 
Turn this variable to true, and the entries with a zero (0.0) amount will be excluded.

Return Value

Dictionary<string, double>
Remarks
 
If removeZeroValues is False, then the result will be like: 

{301, 0} 
{331, 0} 
{302, 56.17} 
{332, 3.37} 
... 
{349, 176.32} 
{310, 0} 

 
If removeZeroValues is True, then the result will be like: 

{302, 56.17} 
{332, 3.37} 
... 
{349, 176.32} 
}
Example
 
 Dictionary<string, object> result = rvi.getCodeSums();
 
 // The result of the above is a list containing data like:
 // [301, 0]
 // [331, 0]
 // [302, 56.17]
 // [332, 3.37]
 					
This language is not supported or no code example is available.
 Dim result As Dictionary(Of String, Object) = rvi.getValidCategoryNames()
 
 ' The result of the above is a list containing data like:
 ' [302, 56.17]
 ' [332, 3.37]
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition