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
- 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
Microsoft.VisualStudio.TestTools.UITest.Extension Namespace