UITestExtensionPackage.GetService Method

Gets the service object type for this UI test package.

Namespace:  Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

Syntax

'Declaration
Public MustOverride Function GetService ( _
    serviceType As Type _
) As Object
public abstract Object GetService(
    Type serviceType
)
public:
virtual Object^ GetService(
    Type^ serviceType
) abstract
abstract GetService : 
        serviceType:Type -> Object
public abstract function GetService(
    serviceType : Type
) : Object

Parameters

  • serviceType
    Type: Type

    The Type that specifies the type of service object to get.

Return Value

Type: Object
The type of service object to get.

Implements

IServiceProvider.GetService(Type)

.NET Framework Security

See Also

Reference

UITestExtensionPackage Class

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

Other Resources

Enable Coded UI Testing of Your Controls