CredentialAttribute.Password 属性

获得用户的密码。

命名空间:  Microsoft.VisualStudio.TestTools.UnitTesting.Web
程序集:  Microsoft.VisualStudio.QualityTools.UnitTestFramework(在 Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll 中)

语法

声明
Public ReadOnly Property Password As String
    Get
public string Password { get; }
public:
property String^ Password {
    String^ get ();
}
member Password : string
function get Password () : String

属性值

类型:System.String
用户的密码。

备注

警告   密码以纯文本的形式存储在源代码和经过编译的程序集中。 限制对源代码和程序集的访问有助于保护此敏感信息。

.NET Framework 安全性

请参见

参考

CredentialAttribute 类

Microsoft.VisualStudio.TestTools.UnitTesting.Web 命名空间

其他资源

ASP.NET Unit Tests