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)

Syntax

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

Parameters

  • 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

Reference

ForbiddenHostNames Class

Microsoft.TeamFoundation.Framework.Server Namespace