TestElement.HostType Property

Gets or sets the type name for the custom host to use for the test instead of the default host.

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

'Declaration
<UserVisiblePropertyAttribute("{A898971C-FFC5-491b-A5C3-346A62BA6136}")> _
<GroupingPropertyAttribute> _
<PropertyWindowAttribute(PropertyConverterType.HostTypeConverter)> _
Public Overridable Property HostType As String
[UserVisiblePropertyAttribute("{A898971C-FFC5-491b-A5C3-346A62BA6136}")]
[GroupingPropertyAttribute]
[PropertyWindowAttribute(PropertyConverterType.HostTypeConverter)]
public virtual string HostType { get; set; }
[UserVisiblePropertyAttribute(L"{A898971C-FFC5-491b-A5C3-346A62BA6136}")]
[GroupingPropertyAttribute]
[PropertyWindowAttribute(PropertyConverterType::HostTypeConverter)]
public:
virtual property String^ HostType {
    String^ get ();
    void set (String^ value);
}
[<UserVisiblePropertyAttribute("{A898971C-FFC5-491b-A5C3-346A62BA6136}")>]
[<GroupingPropertyAttribute>]
[<PropertyWindowAttribute(PropertyConverterType.HostTypeConverter)>]
abstract HostType : string with get, set
[<UserVisiblePropertyAttribute("{A898971C-FFC5-491b-A5C3-346A62BA6136}")>]
[<GroupingPropertyAttribute>]
[<PropertyWindowAttribute(PropertyConverterType.HostTypeConverter)>]
override HostType : string with get, set
function get HostType () : String
function set HostType (value : String)

Property Value

Type: System.String
The type name for the custom host.

Implements

IHostedTest.HostType

.NET Framework Security

See Also

Reference

TestElement Class

Microsoft.VisualStudio.TestTools.Common Namespace