Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the value of the specified option in this element.
Namespace: Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly: Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)
Syntax
'Declaration
Public Overridable Sub SetOption ( _
technologyElementOption As UITechnologyElementOption, _
optionValue As Object _
)
public virtual void SetOption(
UITechnologyElementOption technologyElementOption,
Object optionValue
)
public:
virtual void SetOption(
UITechnologyElementOption technologyElementOption,
Object^ optionValue
)
abstract SetOption :
technologyElementOption:UITechnologyElementOption *
optionValue:Object -> unit
override SetOption :
technologyElementOption:UITechnologyElementOption *
optionValue:Object -> unit
public function SetOption(
technologyElementOption : UITechnologyElementOption,
optionValue : Object
)
Parameters
technologyElementOption
Type: Microsoft.VisualStudio.TestTools.UITest.Extension.UITechnologyElementOptionA member of the UITechnologyElementOption enumeration.
optionValue
Type: ObjectThe value for the 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.