ForbiddenHostNames.IsNameAllowed Method

IsNameAllowed is used to determine whether a named is currently forbidden.

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


Public Shared Function IsNameAllowed ( _
    name As String, _
    hostType As TeamFoundationHostType _
) As Boolean
public static bool IsNameAllowed(
    string name,
    TeamFoundationHostType hostType
static bool IsNameAllowed(
    String^ name, 
    TeamFoundationHostType hostType
static member IsNameAllowed : 
        name:string * 
        hostType:TeamFoundationHostType -> bool
public static function IsNameAllowed(
    name : String, 
    hostType : TeamFoundationHostType
) : boolean


  • name
    Type: System.String

    The name that you want to test against the forbidden names.

Return Value

Type: System.Boolean
True if the name is valid for use.

.NET Framework Security

See Also


ForbiddenHostNames Class

Microsoft.TeamFoundation.Framework.Server Namespace