获取或设置要用于测试的自定义主机(而不是默认主机)的类型名称。
命名空间: Microsoft.VisualStudio.TestTools.Common
程序集: Microsoft.VisualStudio.QualityTools.Common(在 Microsoft.VisualStudio.QualityTools.Common.dll 中)
语法
声明
<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)
属性值
类型:String
自定义主机的类型名称。
实现
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。