ReportServerCredentials Class
Specifies the credentials for the ReportViewer control to use when connecting to a report server.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)
Inheritance Hierarchy
System.Object
Microsoft.Reporting.WinForms.ReportServerCredentials
Syntax
public sealed class ReportServerCredentials : IReportServerCredentials
public ref class ReportServerCredentials sealed : IReportServerCredentials
[<Sealed>]
type ReportServerCredentials =
class
interface IReportServerCredentials
end
Public NotInheritable Class ReportServerCredentials
Implements IReportServerCredentials
Properties
Name | Description | |
---|---|---|
ImpersonationUser | Specifies the user to impersonate when connecting to the report server. |
|
NetworkCredentials | Gets or sets the network credentials used for authentication with the report server. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
GetFormsCredentials(Cookie, String, String, String) | Returns a Boolean value indicating whether forms authentication will be used when connecting to the report server, as well as information about the forms credentials to be used for authentication. |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
SetFormsCredentials(Cookie, String, String, String) | Specifies that forms authentication is to be used when connecting to the report server and provides the forms credentials. |
|
ToString() | (Inherited from Object.) |
Remarks
By default, the ReportViewer control uses the default Windows identity to connect to the report server. The ReportServerCredentials class is implemented as a property of the ReportViewer control and can be used to provide custom authentication for connecting to the report server.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.Reporting.WinForms Namespace
Return to top