2016-08-23 6 views
-2

未満にアクセス可能である私は、このエラーを取得する:一貫性のないアクセス:パラメータの型は、メソッド

エラー2一貫性のないアクセス:パラメータの型 は「Update_Automation_Report_In_ALM.OtaApi」 方法 「より少ないアクセス可能ですUpdate_Automation_Report_In_ALM.reportTab.reportTab (System.Windows.Forms.TextBox、 System.Windows.Forms.ToolStripStatusLabel、 System.Windows.Forms.ToolStripStatusLabel、 Update_Automation_Report_In_ALM.OtaApi)」C:\ Users \ユーザーeitansh \デスクトップ\アップデートALM \アップデートで オートメーションレポートオートメーションレポート ALM \ reportTab.cs 28 ALM

で16アップデートの自動レポート

これが私のForm1です:

public partial class Form1 : Form 
    { 
     private OtaApi ota = new OtaApi(); 
     private string windowsUsername; 

     public Form1() 
     { 
      InitializeComponent(); 
      var rt = new reportTab(statusBox, toolStripVersionLabel, toolStripUsernameLabel, ota); 

     } 
} 

このreportTabl:

public partial class reportTab : Form 
    { 

     private string selectedPlatform; 
     private TextBox statusBox; 
     private ToolStripStatusLabel toolStripVersionLabel; 
     private ToolStripStatusLabel toolStripUsernameLabel; 
     private OtaApi ota; 


     public reportTab(TextBox statusBox, ToolStripStatusLabel toolStripVersionLabel, ToolStripStatusLabel toolStripUsernameLabel, OtaApi ota) 
     { 
      this.statusBox = statusBox; 
      this.toolStripVersionLabel = toolStripVersionLabel; 
      this.toolStripUsernameLabel = toolStripUsernameLabel; 
      this.ota = ota; 
      InitializeComponent(); 



     } 
} 

誰もが問題を見ることができますか?ありがとう

答えて

2

クラスUpdate_Automation_Report_In_ALM.OtaApiはおそらく内部的ですが、公開されているメソッドに渡しています。したがって、Update_Automation_Report_In_ALM.OtaApiはメソッドよりアクセスしにくいです。

+0

ありがとうございます!あなたは男です:) – Mojo

関連する問題