共用方式為


DataSourceDefinition.WindowsCredentials 屬性

Indicates whether the Report Server passes user-provided or stored credentials as Windows credentials when connecting to a data source.

命名空間:  ReportService2005
組件:  ReportService2005 (在 ReportService2005.dll 中)

語法

'宣告
Public Property WindowsCredentials As Boolean 
    Get 
    Set
'用途
Dim instance As DataSourceDefinition 
Dim value As Boolean 

value = instance.WindowsCredentials

instance.WindowsCredentials = value
public bool WindowsCredentials { get; set; }
public:
property bool WindowsCredentials {
    bool get ();
    void set (bool value);
}
member WindowsCredentials : bool with get, set
function get WindowsCredentials () : boolean 
function set WindowsCredentials (value : boolean)

屬性值

型別:System.Boolean
A Boolean value. The default value is false.

備註

When WindowsCredentials is set to true, the submitted credentials are treated as Windows credentials when connecting to a data source.

The Report Server impersonates the user before making the connection to the data source.

This property is valid when the CredentialRetrieval property is set to Prompt or Store. This property is ignored if CredentialRetrieval is set to Integrated.

請參閱

參考

DataSourceDefinition 類別

ReportService2005 命名空間