Bagikan melalui


ITeamExplorerPageExtensions.GetService<T> Method

Get the requested service.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetService(Of T) ( _
    page As ITeamExplorerPage _
) As T
public static T GetService<T>(
    this ITeamExplorerPage page
)
[ExtensionAttribute]
public:
generic<typename T>
static T GetService(
    ITeamExplorerPage^ page
)
static member GetService : 
        page:ITeamExplorerPage -> 'T 
JScript does not support generic types or methods.

Type Parameters

  • T
    Service type

Parameters

Return Value

Type: T
Returns ITeamExplorerSection.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ITeamExplorerPage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

ITeamExplorerPageExtensions Class

Microsoft.TeamFoundation.Controls Namespace