UITestPropertyProvider.SetPropertyValue 메서드

파생 클래스에서 재정의하는 경우 지정된 컨트롤의 지정된 속성을 제공된 값으로 설정합니다.

네임스페이스:  Microsoft.VisualStudio.TestTools.UITesting
어셈블리:  Microsoft.VisualStudio.TestTools.UITesting(Microsoft.VisualStudio.TestTools.UITesting.dll)

구문

‘선언
Public MustOverride Sub SetPropertyValue ( _
    uiTestControl As UITestControl, _
    propertyName As String, _
    value As Object _
)
public abstract void SetPropertyValue(
    UITestControl uiTestControl,
    string propertyName,
    Object value
)
public:
virtual void SetPropertyValue(
    UITestControl^ uiTestControl, 
    String^ propertyName, 
    Object^ value
) abstract
abstract SetPropertyValue : 
        uiTestControl:UITestControl * 
        propertyName:string * 
        value:Object -> unit 
public abstract function SetPropertyValue(
    uiTestControl : UITestControl, 
    propertyName : String, 
    value : Object
)

매개 변수

예외

예외 조건
[NotSupportedException]

이 속성 공급자는 지정된 속성을 지원하지 않습니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

UITestPropertyProvider 클래스

Microsoft.VisualStudio.TestTools.UITesting 네임스페이스

UITestControl

기타 리소스

Enable Coded UI Testing of Your Controls