Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a new instance of the ProvideServiceForTestTypeAttribute class by using the provided test type and service type.
Namespace:  Microsoft.VisualStudio.TestTools.Vsip
Assembly:  Microsoft.VisualStudio.QualityTools.Vsip (in Microsoft.VisualStudio.QualityTools.Vsip.dll)
Syntax
'Declaration
Public Sub New ( _
    testType As Type, _
    serviceType As Type _
)
public ProvideServiceForTestTypeAttribute(
    Type testType,
    Type serviceType
)
public:
ProvideServiceForTestTypeAttribute(
    Type^ testType, 
    Type^ serviceType
)
new : 
        testType:Type * 
        serviceType:Type -> ProvideServiceForTestTypeAttribute
public function ProvideServiceForTestTypeAttribute(
    testType : Type, 
    serviceType : Type
)
Parameters
- testType
 Type: System.Type
 The Type of the custom ITestElement for which to provide services.
- serviceType
 Type: System.Type
 The Type of the IServiceProvider to provide.
.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.
See Also
Reference
ProvideServiceForTestTypeAttribute Class