Jaa


Contains Method (String, String)

Returns a value indicating if a specific DisplayPropertyValue is within the DisplayPropertyValueCollection.

Namespace:  Microsoft.CommerceServer.Marketing
Assembly:  Microsoft.CommerceServer.Marketing.CrossTierTypes (in Microsoft.CommerceServer.Marketing.CrossTierTypes.dll)

Syntax

'Declaration
Public Function Contains ( _
    templateName As String, _
    propertyName As String _
) As Boolean
'Usage
Dim instance As DisplayPropertyValueCollection
Dim templateName As String
Dim propertyName As String
Dim returnValue As Boolean

returnValue = instance.Contains(templateName, _
    propertyName)
public bool Contains(
    string templateName,
    string propertyName
)
public:
bool Contains(
    String^ templateName, 
    String^ propertyName
)
public function Contains(
    templateName : String, 
    propertyName : String
) : boolean

Parameters

  • templateName
    Type: System..::.String
    Name of the template the property value is assigned to.
  • propertyName
    Type: System..::.String
    Name of the display property the value is assigned to.

Return Value

Type: System..::.Boolean
true if the DisplayPropertyValue is within the DisplayPropertyValueCollection; otherwise false.

Remarks

Returns a value indicating if a specific DisplayPropertyValue is within the DisplayPropertyValueCollection. A true is returned if a discount is present in the collection.

Permissions

See Also

Reference

DisplayPropertyValueCollection Class

DisplayPropertyValueCollection Members

Contains Overload

Microsoft.CommerceServer.Marketing Namespace