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)
Syntax
'Declaration
Public Function IsOnly ( _
hostType As TeamFoundationHostType _
) As Boolean
public bool IsOnly(
TeamFoundationHostType hostType
)
public:
bool IsOnly(
TeamFoundationHostType hostType
)
member IsOnly :
hostType:TeamFoundationHostType -> bool
public function IsOnly(
hostType : TeamFoundationHostType
) : boolean
Parameters
Return Value
Type: System.Boolean
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.