myDATATools.getGovs Method

Get the list of Goverment IDs, including VAT Number and Full Name. 
This method returns data for the extraDetails.govID field. 
To see all Government IDs, check the Gov IDs 
This function is not available in the Trial Version.
Public Function getGovs() As Dictionary(Of String, String)
This language is not supported or no code example is available.
public Dictionary<string, string> getGovs()
This language is not supported or no code example is available.

Return Value

Dictionary<string, string>
Example
 
 myDATATools mdt = new myDATATools("Arbitrans User", "Arbitrans Key");
 Dictionary<string, string> Govs = mdt.getGovs();
 foreach (var gov in Govs)
 {
     Console.WriteLine("govID: " + gov.Key.Split("-")[0]);
     Console.WriteLine("govVAT: " + gov.Key.Split("-")[1]);
     Console.WriteLine("govName: " + gov.Value);
 }
 					
This language is not supported or no code example is available.
 Dim mdt as myDATATools = new myDATATools("Arbitrans User", "Arbitrans Key")
 Dim Govs As Dictionary(Of String, String) = mdt.getGovs()
 For Each gov In Govs
     Console.WriteLine("govID: " & gov.Key.Split("-")(0))
     Console.WriteLine("govVAT: " & gov.Key.Split("-")(1))
     Console.WriteLine("govName: " & gov.Value)
 Next
 					
This language is not supported or no code example is available.

.NET Framework

Supported in: 3.5 or newer

In this article

Definition