HostTypeAttribute Constructor (String, String)
Initializes a new instance of the HostTypeAttribute class. This is instantiated with an argument that specifies the type of host that this unit test will run in, and custom data for the host adapter.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Public Sub New ( _
hostType As String, _
hostData As String _
)
'Usage
Dim hostType As String
Dim hostData As String
Dim instance As New HostTypeAttribute(hostType, _
hostData)
public HostTypeAttribute(
string hostType,
string hostData
)
public:
HostTypeAttribute(
String^ hostType,
String^ hostData
)
public function HostTypeAttribute(
hostType : String,
hostData : String
)
Parameters
hostType
Type: System.StringThe type of host that this unit test will run in.
hostData
Type: System.StringCustom data for the host adapter.
Remarks
The standard type of host that is included with Visual Studio 2005 is ASP.NET.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.