Partager via


TestElement.HostType, propriété

Obtient ou définit le nom de type pour que l'hôte personnalisé l'utilise pour le test au lieu de l'hôte par défaut.

Espace de noms :  Microsoft.VisualStudio.TestTools.Common
Assembly :  Microsoft.VisualStudio.QualityTools.Common (dans Microsoft.VisualStudio.QualityTools.Common.dll)

Syntaxe

'Déclaration
<UserVisiblePropertyAttribute("{A898971C-FFC5-491b-A5C3-346A62BA6136}")> _
<GroupingPropertyAttribute> _
<PropertyWindowAttribute(PropertyConverterType.HostTypeConverter)> _
Public Overridable Property HostType As String
    Get
    Set
[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)

Valeur de propriété

Type : System.String
Tapez le nom de l'hôte personnalisé.

Implémentations

IHostedTest.HostType

Sécurité .NET Framework

Voir aussi

Référence

TestElement Classe

Microsoft.VisualStudio.TestTools.Common, espace de noms