获取指定属性的字符形式的值。
命名空间: Microsoft.VisualStudio.TestTools.UITesting.SilverlightControls
程序集: Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight(在 Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight.dll 中)
语法
声明
Public Overridable Function GetPropertyAsString ( _
propertyName As String _
) As String
public virtual string GetPropertyAsString(
string propertyName
)
public:
virtual String^ GetPropertyAsString(
String^ propertyName
)
abstract GetPropertyAsString :
propertyName:string -> string
override GetPropertyAsString :
propertyName:string -> string
public function GetPropertyAsString(
propertyName : String
) : String
参数
- propertyName
类型:System.String
要获取的属性的名称。
返回值
类型:System.String
一个 String 它表示属性的值。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.VisualStudio.TestTools.UITesting.SilverlightControls 命名空间