Partager via


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

Property Value

Type: String
The type name for the custom host.

Implements

IHostedTest.HostType

.NET Framework Security

See Also

Reference

TestElement Class

Microsoft.VisualStudio.TestTools.Common Namespace