title: Clipboard does not exist in the current content
body: <p>I want to use <code>Clipboard.GetText()</code> in a console application. But I get the error message " The name 'Clipboard' does not exist in the current content". I searched the other questions about it and added <code>[STAThread]</code> but the problem is not being solved. </p>
  
  <pre><code>namespace Get_Text_Console_App
  {
  
      class Program
      {
          [STAThread]
          static void Main(string[] args)
          {
              if (Clipboard.ContainsText())
              {
                  string text = Clipboard.GetText();
  
              }
          }
      }
  }
  </code></pre>