title: Why is my function not CLS-compliant?
body: <p>I'm getting the following warning message...</p>
  
  <blockquote>
    <p>Return type of function 'ConnectionNew' is not CLS-compliant.</p>
  </blockquote>
  
  <p>...for this function:  </p>
  
  <pre><code>Public Function ConnectionNew(ByVal DataBaseName As String) As MySqlConnection
        Dim connection As MySqlConnection = Nothing
        connection = getConnection(DataBaseName())
        Return connection
  End Function
  </code></pre>
  
  <p>What does this message mean, and how can I fix it?</p>