Condividi tramite


Proprietà TestElement.HostType

Ottiene o imposta il nome del tipo per l'host personalizzato da utilizzare per il test, invece dell'host predefinito.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Sintassi

'Dichiarazione
<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)

Valore proprietà

Tipo: System.String
Nome del tipo da assegnare all'host personalizzato.

Implementa

IHostedTest.HostType

Sicurezza di .NET Framework

Vedere anche

Riferimenti

TestElement Classe

Spazio dei nomi Microsoft.VisualStudio.TestTools.Common