다음을 통해 공유


TeamFoundationFeatureAvailabilityService.IsFeatureEnabled Method

Determines availability state for feature

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

Syntax

'Declaration
Public Overridable Function IsFeatureEnabled ( _
    requestContext As TeamFoundationRequestContext, _
    featureName As String _
) As Boolean
public virtual bool IsFeatureEnabled(
    TeamFoundationRequestContext requestContext,
    string featureName
)
public:
virtual bool IsFeatureEnabled(
    TeamFoundationRequestContext^ requestContext, 
    String^ featureName
)
abstract IsFeatureEnabled : 
        requestContext:TeamFoundationRequestContext * 
        featureName:string -> bool  
override IsFeatureEnabled : 
        requestContext:TeamFoundationRequestContext * 
        featureName:string -> bool
public function IsFeatureEnabled(
    requestContext : TeamFoundationRequestContext, 
    featureName : String
) : boolean

Parameters

Return Value

Type: System.Boolean
Returns Boolean.

Implements

ITeamFoundationFeatureAvailabilityService.IsFeatureEnabled(TeamFoundationRequestContext, String)

Remarks

Note: once feature state is retrieved for a given request, its result is cached and used for subsequent retrievals within the same request lifespan

.NET Framework Security

See Also

Reference

TeamFoundationFeatureAvailabilityService Class

Microsoft.TeamFoundation.Framework.Server Namespace