使用给定参数名对给定属性进行参数化处理。
命名空间: Microsoft.VisualStudio.TestTools.UITest.Extension
程序集: Microsoft.VisualStudio.TestTools.UITest.Extension(在 Microsoft.VisualStudio.TestTools.UITest.Extension.dll 中)
语法
声明
Public Overridable Function ParameterizeProperty ( _
nameOfProperty As String, _
nameOfParameter As String _
) As Boolean
public virtual bool ParameterizeProperty(
string nameOfProperty,
string nameOfParameter
)
public:
virtual bool ParameterizeProperty(
String^ nameOfProperty,
String^ nameOfParameter
)
abstract ParameterizeProperty :
nameOfProperty:string *
nameOfParameter:string -> bool
override ParameterizeProperty :
nameOfProperty:string *
nameOfParameter:string -> bool
public function ParameterizeProperty(
nameOfProperty : String,
nameOfParameter : String
) : boolean
参数
- nameOfProperty
类型:System.String
属性的名称。
- nameOfParameter
类型:System.String
参数名。
返回值
类型:System.Boolean
如果该属性已成功参数化,则为 true;否则为 false。
实现
IQueryCondition.ParameterizeProperty(String, String)
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。