dotConnect for Zoho CRM Documentation
Devart.Data.Zoho Namespace / ZohoConnection Class / ZohoConnection Constructor / ZohoConnection Constructor()
Example

In This Topic
    ZohoConnection Constructor()
    In This Topic
    Initializes a new instance of the ZohoConnection class.
    Syntax
    'Declaration
     
    Public Function New()
    public ZohoConnection()
    Remarks
    When a new instance of ZohoConnection is created, the read/write properties are set to the following initial values unless they are specifically set using their associated keywords in the ConnectionString property.
    Example
    The following example creates and opens a ZohoConnection.
    public void CreateZohoConnection()
    {
      ZohoConnection zohoConnection = new ZohoConnection();
      zohoConnection.ConnectionString = 
          "API Version=V2;Refresh Token=1000.a6fde76542bfbb5244a7e539d4390e72.87e34ea57023c2d0e7dcb9ce55e3e7f3;ClientId=1000.M4FJLKYTSED90LJHUTVMKKAA432RUK;ClientSecret=89a0ed79957808814cdb20b9765423efffa767d1d0";
      zohoConnection.Open();
      //Do something
      zohoConnection.Close();
    }
    Public Sub CreateZohoConnection()
      Dim zohoConnection As New ZohoConnection()
      zohoConnection.ConnectionString = _ 
          "API Version=V2;Refresh Token=1000.a6fde76542bfbb5244a7e539d4390e72.87e34ea57023c2d0e7dcb9ce55e3e7f3;ClientId=1000.M4FJLKYTSED90LJHUTVMKKAA432RUK;ClientSecret=89a0ed79957808814cdb20b9765423efffa767d1d0"
      zohoConnection.Open()
      'Do something
      zohoConnection.Close()
    End Sub
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also