Condividi tramite


TfsHostTypeConstraint Class

Ensures a resource is not visible unless the request context matches a specified configuration.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Framework.Server.TfsHostTypeConstraint

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

Syntax

'Declaration
Public NotInheritable Class TfsHostTypeConstraint _
    Implements IRouteConstraint
public sealed class TfsHostTypeConstraint : IRouteConstraint
public ref class TfsHostTypeConstraint sealed : IRouteConstraint
[<Sealed>]
type TfsHostTypeConstraint =  
    class 
        interface IRouteConstraint 
    end
public final class TfsHostTypeConstraint implements IRouteConstraint

The TfsHostTypeConstraint type exposes the following members.

Constructors

  Name Description
Public method TfsHostTypeConstraint 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.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IRouteConstraint.Match

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Framework.Server Namespace