共用方式為


DataSourceCredentials.CreateFromCiphertext 方法

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Creates a DataSourceCredentials object from a cipher text.

命名空間:  Microsoft.ReportingServices.RdlObjectModel
組件:  Microsoft.ReportingServices.Designer.Controls (在 Microsoft.ReportingServices.Designer.Controls.dll 中)

語法

'宣告
Public Shared Function CreateFromCiphertext ( _
    encryptedUserName As String, _
    encryptedPassword As String _
) As DataSourceCredentials
'用途
Dim encryptedUserName As String 
Dim encryptedPassword As String 
Dim returnValue As DataSourceCredentials 

returnValue = DataSourceCredentials.CreateFromCiphertext(encryptedUserName, _
    encryptedPassword)
public static DataSourceCredentials CreateFromCiphertext(
    string encryptedUserName,
    string encryptedPassword
)
public:
static DataSourceCredentials^ CreateFromCiphertext(
    String^ encryptedUserName, 
    String^ encryptedPassword
)
static member CreateFromCiphertext : 
        encryptedUserName:string * 
        encryptedPassword:string -> DataSourceCredentials
public static function CreateFromCiphertext(
    encryptedUserName : String, 
    encryptedPassword : String
) : DataSourceCredentials

參數

  • encryptedUserName
    型別:System.String
    The encrypted user name.
  • encryptedPassword
    型別:System.String
    The encrypted password.

傳回值

型別:Microsoft.ReportingServices.RdlObjectModel.DataSourceCredentials
A DataSourceCredentials object.

請參閱

參考

DataSourceCredentials 類別

Microsoft.ReportingServices.RdlObjectModel 命名空間