TeamFoundationTeam.GetTeamPropertiesView<T> Method

Creates and caches a view object for the team that simplifies access to complex properties that require additional processing such as converting id of a TFS artifact to a meaningful text, that is from work item tracking area id to area path. If a view object is found in the cache for a given type, cached object will be returned.

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

Syntax

'Declaration
Public Function GetTeamPropertiesView(Of T As TeamPropertiesView) ( _
    tfs As TfsConnection _
) As T
public T GetTeamPropertiesView<T>(
    TfsConnection tfs
)
where T : TeamPropertiesView
public:
generic<typename T>
where T : TeamPropertiesView
T GetTeamPropertiesView(
    TfsConnection^ tfs
)
member GetTeamPropertiesView : 
        tfs:TfsConnection -> 'T  when 'T : TeamPropertiesView
JScript does not support generic types or methods.

Type Parameters

  • T
    view object type. A view object must have a public constructor that requires no arguments.

Parameters

Return Value

Type: T
The view object instance initialized with the request context and with this team instance.

.NET Framework Security

See Also

Reference

TeamFoundationTeam Class

Microsoft.TeamFoundation.Client Namespace