Sets the option for this IUITechnologyElement.
Namespace:  Microsoft.VisualStudio.TestTools.UITesting
Assembly:  Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
Syntax
'Declaration
Public Overrides Sub SetOption ( _
    technologyElementOption As UITechnologyElementOption, _
    optionValue As Object _
)
public override void SetOption(
    UITechnologyElementOption technologyElementOption,
    Object optionValue
)
public:
virtual void SetOption(
    UITechnologyElementOption technologyElementOption, 
    Object^ optionValue
) override
abstract SetOption : 
        technologyElementOption:UITechnologyElementOption * 
        optionValue:Object -> unit  
override SetOption : 
        technologyElementOption:UITechnologyElementOption * 
        optionValue:Object -> unit
public override function SetOption(
    technologyElementOption : UITechnologyElementOption, 
    optionValue : Object
)
Parameters
- technologyElementOption 
 Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementOption- The element option to set. 
- optionValue 
 Type: Object- The value of this element option. 
Implements
IUITechnologyElement.SetOption(UITechnologyElementOption, Object)
Exceptions
| Exception | Condition | 
|---|---|
| NotSupportedException | Throws System.NotSupportedException if the element option is not supported. | 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.