Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
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.