Condividi tramite


CatalogRuleValidationUtility.CheckForDuplicatePropertyValues Method

Checks to make sure the resource is the only resource of its type that has the given property key and value underneath pathSpec.

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

Syntax

'Declaration
Public Sub CheckForDuplicatePropertyValues ( _
    requestContext As TeamFoundationRequestContext, _
    catalogResource As CatalogResource, _
    valueExclusivity As PropertyValueExclusivity, _
    propertyName As String, _
    propertyValue As String _
)
public void CheckForDuplicatePropertyValues(
    TeamFoundationRequestContext requestContext,
    CatalogResource catalogResource,
    PropertyValueExclusivity valueExclusivity,
    string propertyName,
    string propertyValue
)
public:
void CheckForDuplicatePropertyValues(
    TeamFoundationRequestContext^ requestContext, 
    CatalogResource^ catalogResource, 
    PropertyValueExclusivity valueExclusivity, 
    String^ propertyName, 
    String^ propertyValue
)
member CheckForDuplicatePropertyValues : 
        requestContext:TeamFoundationRequestContext * 
        catalogResource:CatalogResource * 
        valueExclusivity:PropertyValueExclusivity * 
        propertyName:string * 
        propertyValue:string -> unit
public function CheckForDuplicatePropertyValues(
    requestContext : TeamFoundationRequestContext, 
    catalogResource : CatalogResource, 
    valueExclusivity : PropertyValueExclusivity, 
    propertyName : String, 
    propertyValue : String
)

Parameters

  • propertyName
    Type: System.String

    The name of the property we are looking for the duplication.

  • propertyValue
    Type: System.String

    The value of the property we are looking for that would be duplicated.

.NET Framework Security

See Also

Reference

CatalogRuleValidationUtility Class

Microsoft.TeamFoundation.Server.Core Namespace