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

On this page
    ZohoDeskConnection Constructor()
    On this page
    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