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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.VisualStudio.TestTools.UnitTesting.Web 命名空间