dotConnect for Zoho Desk Documentation
Devart.Data.ZohoDesk Namespace / ZohoDeskConnection Class / ZohoDeskConnection Constructor / ZohoDeskConnection Constructor()
Example

In This Topic
    ZohoDeskConnection Constructor()
    In This Topic
    Initializes a new instance of the ZohoDeskConnection class.
    Syntax
    'Declaration
     
    Public Function New()
    public ZohoDeskConnection()
    Remarks
    When a new instance of ZohoDeskConnection 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 ZohoDeskConnection.
    public void CreateZohoDeskConnection()
    {
      ZohoDeskConnection ZohoDeskConnection = new ZohoDeskConnection();
      ZohoDeskConnection.ConnectionString = 
          Refresh Token=1000.a6fde76542bfbb5244a7e539d4390e72.87e34ea57023c2d0e7dcb9ce55e3e7f;
      ZohoDeskConnection.Open();
      //Do something
      ZohoDeskConnection.Close();
    }
    Public Sub CreateZohoDeskConnection()
      Dim ZohoDeskConnection As New ZohoDeskConnection()
      ZohoDeskConnection.ConnectionString = _ 
          Refresh Token=1000.a6fde76542bfbb5244a7e539d4390e72.87e34ea57023c2d0e7dcb9ce55e3e7f
      ZohoDeskConnection.Open()
      'Do something
      ZohoDeskConnection.Close()
    End Sub
    See Also