共用方式為


UITechnologyManagerProxy.SetTechnologyManagerProperty 方法

設定技術管理員特定屬性。

命名空間:  Microsoft.VisualStudio.TestTools.UITesting
組件:  Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)

語法

'宣告
Public Overrides Sub SetTechnologyManagerProperty ( _
    propertyName As UITechnologyManagerProperty, _
    propertyValue As Object _
)
public override void SetTechnologyManagerProperty(
    UITechnologyManagerProperty propertyName,
    Object propertyValue
)
public:
virtual void SetTechnologyManagerProperty(
    UITechnologyManagerProperty propertyName, 
    Object^ propertyValue
) override
abstract SetTechnologyManagerProperty : 
        propertyName:UITechnologyManagerProperty * 
        propertyValue:Object -> unit  
override SetTechnologyManagerProperty : 
        propertyName:UITechnologyManagerProperty * 
        propertyValue:Object -> unit
public override function SetTechnologyManagerProperty(
    propertyName : UITechnologyManagerProperty, 
    propertyValue : Object
)

參數

  • propertyValue
    類型:Object

    要設定的屬性值。

實作

IUITechnologyManager.SetTechnologyManagerProperty(UITechnologyManagerProperty, Object)

例外狀況

例外狀況 條件
NotSupportedException

如果屬性不受支援,擲回 System.NotSupportedException。

.NET Framework 安全性

請參閱

參考

UITechnologyManagerProxy 類別

Microsoft.VisualStudio.TestTools.UITesting 命名空間