共用方式為


CatalogRuleValidationUtility.CheckServiceReferenceConstraints Method

Throws if this resource doesn't have the specified service reference with the specified type.

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

Syntax

'Declaration
Public Sub CheckServiceReferenceConstraints ( _
    resource As CatalogResource, _
    constraints As ServiceReferenceConstraint() _
)
public void CheckServiceReferenceConstraints(
    CatalogResource resource,
    ServiceReferenceConstraint[] constraints
)
public:
void CheckServiceReferenceConstraints(
    CatalogResource^ resource, 
    array<ServiceReferenceConstraint^>^ constraints
)
member CheckServiceReferenceConstraints : 
        resource:CatalogResource * 
        constraints:ServiceReferenceConstraint[] -> unit
public function CheckServiceReferenceConstraints(
    resource : CatalogResource, 
    constraints : ServiceReferenceConstraint[]
)

Parameters

.NET Framework Security

See Also

Reference

CatalogRuleValidationUtility Class

Microsoft.TeamFoundation.Server.Core Namespace