共用方式為


IDbConnectionExtension.UserName 屬性

Gets or sets the username to use when connecting to the database. Overrides any username specified in the connection string.

命名空間:  Microsoft.ReportingServices.DataProcessing
組件:   Microsoft.ReportingServices.SharePoint.UI.WebParts (在 Microsoft.ReportingServices.SharePoint.UI.WebParts.dll 中)
  Microsoft.ReportingServices.Interfaces (在 Microsoft.ReportingServices.Interfaces.dll 中)

語法

'宣告
WriteOnly Property UserName As String 
    Set
'用途
Dim instance As IDbConnectionExtension 
Dim value As String

instance.UserName = value
string UserName { set; }
property String^ UserName {
    void set (String^ value);
}
abstract UserName : string with get, set
function set UserName (value : String)

屬性值

型別:System.String
The user name to use when authenticating the client.

備註

You can set the username and Password in order to specify alternate credentials with which to access the data source.

請參閱

參考

IDbConnectionExtension 介面

Microsoft.ReportingServices.DataProcessing 命名空間