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
System_CAPS_pubproperty ImpersonationUser

Specifies the user to impersonate when connecting to the report server.

System_CAPS_pubproperty NetworkCredentials

Gets or sets the network credentials used for authentication with the report server.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod 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.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod SetFormsCredentials(Cookie, String, String, String)

Specifies that forms authentication is to be used when connecting to the report server and provides the forms credentials.

System_CAPS_pubmethod 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