Delen via


TeamFoundationServiceHost.CollectionServiceHost Property

Retrieves the collection service host from the current host.

If this host is not a collection it will search up the host chain to find it. If one isnt found, it will return null.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public ReadOnly Property CollectionServiceHost As TeamFoundationServiceHost
public TeamFoundationServiceHost CollectionServiceHost { get; }
public:
property TeamFoundationServiceHost^ CollectionServiceHost {
    TeamFoundationServiceHost^ get ();
}
member CollectionServiceHost : TeamFoundationServiceHost with get
function get CollectionServiceHost () : TeamFoundationServiceHost

Property Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationServiceHost
Returns TeamFoundationServiceHost.

.NET Framework Security

See Also

Reference

TeamFoundationServiceHost Class

Microsoft.TeamFoundation.Framework.Server Namespace