Share via


HtmlLabel.LabelFor Property

Gets the name of the control that is associated with this label.

Namespace:  Microsoft.VisualStudio.TestTools.UITesting.HtmlControls
Assemblies:   Microsoft.VisualStudio.TestTools.UITesting (in Microsoft.VisualStudio.TestTools.UITesting.dll)
  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (in Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property LabelFor As String
public virtual string LabelFor { get; }
public:
virtual property String^ LabelFor {
    String^ get ();
}
abstract LabelFor : string with get 
override LabelFor : string with get
function get LabelFor () : String

Property Value

Type: String
The name of the control that is associated with this label.

.NET Framework Security

See Also

Reference

HtmlLabel Class

Microsoft.VisualStudio.TestTools.UITesting.HtmlControls Namespace