dotConnect for Zoho Desk Documentation
Devart.Data.ZohoDesk Namespace / ZohoDeskConnection Class / ZohoDeskConnection Constructor / ZohoDeskConnection Constructor(String)
The connection used to connect to Zoho Desk.
Example

In This Topic
    ZohoDeskConnection Constructor(String)
    In This Topic
    Initializes a new instance of the ZohoDeskConnection class when given a string containing the connection string.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal connectionString As String _
    )
    public ZohoDeskConnection( 
       string connectionString
    )

    Parameters

    connectionString
    The connection used to connect to Zoho Desk.
    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()
    {
      string myConnString = 
          Refresh Token=1000.a6fde76542bfbb5244a7e539d4390e72.87e34ea57023c2d0e7dcb9ce55e3e7f;
      ZohoDeskConnection ZohoDeskConnection = new ZohoDeskConnection(myConnString);
      ZohoDeskConnection.Open();
      //Do something
      ZohoDeskConnection.Close();
    }
    Public Sub CreateZohoDeskConnection()
      Dim myConnString As String = _
          Refresh Token=1000.a6fde76542bfbb5244a7e539d4390e72.87e34ea57023c2d0e7dcb9ce55e3e7f
      Dim ZohoDeskConnection As New ZohoDeskConnection(myConnString)
      ZohoDeskConnection.Open()
      'Do something
      ZohoDeskConnection.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