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.StringThe name that you want to test against the forbidden names.
hostType
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationHostTypeThe type of host to check. Applications and ProjectCollections may have different restrictions and different forbidden names
Return Value
Type: System.Boolean
True if the name is valid for use.
.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.