How can we help?

Using Auron SMS Component in C# .Net

To use the SMS Component objects in C# make sure the component has been installed on the server.

You can find working examples of how to use the Auron SMS Component in C# on github.

Add a reference to the SMS Component object using the Visual C# Solution Explorer:

  • Start the Solution Explorer view, go to the project’s ‘References’ container
  • Choose ‘Add Reference’ from the context menu
  • Select the COM tab, choose the ‘Auron SMS Component’ component

The following code shows how to declare, create and use one of the SMS Component objects:

using AxSms;

AxSms.Gsm objGsm;                                      // Declaration
objGsm = new AxSms.Gsm();                              // Creation

// Display version information
Console.WriteLine("Auron SMS Component {0}\n", objGsm.Version);