TeamFoundationServiceHost.IsOnly Method

ServiceHosts can be multiple types at the same time, an example is the deployment service host may be combined with an application service host.

This method will make sure that the host is only the type specified and not combined with other types.

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


Public Function IsOnly ( _
    hostType As TeamFoundationHostType _
) As Boolean
public bool IsOnly(
    TeamFoundationHostType hostType
bool IsOnly(
    TeamFoundationHostType hostType
member IsOnly : 
        hostType:TeamFoundationHostType -> bool
public function IsOnly(
    hostType : TeamFoundationHostType
) : boolean


Return Value

Type: System.Boolean

.NET Framework Security

See Also


TeamFoundationServiceHost Class

Microsoft.TeamFoundation.Framework.Server Namespace