TfsConfigurationServer.GetServiceInstance Method

Gets the base service instance of the specified service.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)


Protected Overrides Function GetServiceInstance ( _
    serviceType As Type, _
    serviceInstance As Object _
) As Object
protected override Object GetServiceInstance(
    Type serviceType,
    Object serviceInstance
virtual Object^ GetServiceInstance(
    Type^ serviceType, 
    Object^ serviceInstance
) override
abstract GetServiceInstance : 
        serviceType:Type * 
        serviceInstance:Object -> Object 
override GetServiceInstance : 
        serviceType:Type * 
        serviceInstance:Object -> Object 
protected override function GetServiceInstance(
    serviceType : Type, 
    serviceInstance : Object
) : Object


  • serviceType
    Type: System.Type
    The type of the service.
  • serviceInstance
    Type: System.Object
    The service instance for which the base instance is desired.

Return Value

Type: System.Object
The base service instance.

.NET Framework Security

See Also


TfsConfigurationServer Class

Microsoft.TeamFoundation.Client Namespace

Other Resources

Connect to Team Foundation Server from a Console Application

Getting Additional Team Foundation Services