Partager via


HostTypeAttribute Constructor (String, String)

Initializes a new instance of the HostTypeAttribute class. This is instantiated by using an argument that specifies the type of host on which this unit test will run, 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 _
)
public HostTypeAttribute(
    string hostType,
    string hostData
)
public:
HostTypeAttribute(
    String^ hostType, 
    String^ hostData
)
new : 
        hostType:string * 
        hostData:string -> HostTypeAttribute
public function HostTypeAttribute(
    hostType : String, 
    hostData : String
)

Parameters

  • hostType
    Type: String

    The type of host on which this unit test will run.

  • hostData
    Type: String

    Custom data for the host adapter.

Remarks

The standard type of host that is included with Visual Studio 2005 is ASP.NET.

.NET Framework Security

See Also

Reference

HostTypeAttribute Class

HostTypeAttribute Overload

Microsoft.VisualStudio.TestTools.UnitTesting Namespace