共用方式為


ReportServerCredentials 類別

指定在連接到報表伺服器時,ReportViewer 控制項所用的認證。

命名空間: Microsoft.Reporting.WinForms
組件: Microsoft.ReportViewer.WinForms (在 microsoft.reportviewer.winforms.dll)

語法

'宣告
Public NotInheritable Class ReportServerCredentials
    Implements IReportServerCredentials
'用途
Dim instance As ReportServerCredentials
public sealed class ReportServerCredentials : IReportServerCredentials
public ref class ReportServerCredentials sealed : IReportServerCredentials
public final class ReportServerCredentials implements IReportServerCredentials
public final class ReportServerCredentials implements IReportServerCredentials

備註

依預設,ReportViewer 控制項會利用預設 Windows 識別來連到報表伺服器。ReportServerCredentials 類別是作為 ReportViewer 控制項的屬性來實作的,可用來提供連接到報表伺服器的自訂驗證。

繼承階層

System.Object
  Microsoft.Reporting.WinForms.ReportServerCredentials

執行緒安全性

此類型的任何公用靜態 (在 Visual Basic 中為 Shared ) 成員為安全執行緒。任何執行個體成員皆不能保證是安全執行緒。

另請參閱

參考

ReportServerCredentials 成員
Microsoft.Reporting.WinForms 命名空間