TfsApiHostTypeConstraint Constructor
Initializes a new TfsHostTypeConstraint instance with the specified host type(s). The resource will only be visible if the request context targets one of the specified hosts.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub New ( _
hostType As TeamFoundationHostType _
)
public TfsApiHostTypeConstraint(
TeamFoundationHostType hostType
)
public:
TfsApiHostTypeConstraint(
TeamFoundationHostType hostType
)
new :
hostType:TeamFoundationHostType -> TfsApiHostTypeConstraint
public function TfsApiHostTypeConstraint(
hostType : TeamFoundationHostType
)
Parameters
hostType
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationHostTypeThe host type or types for which the resource is visible
.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.