Jaa


Remove Method (String, String)

Removes the specified DisplayPropertyValue from the DisplayPropertyValueCollection, based upon the template name and property name.

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

Syntax

'Declaration
Public Function Remove ( _
    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.Remove(templateName, _
    propertyName)
public bool Remove(
    string templateName,
    string propertyName
)
public:
bool Remove(
    String^ templateName, 
    String^ propertyName
)
public function Remove(
    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 successfully found and removed; otherwise, false. This method returns false if key is not found in the DisplayPropertyValueCollection.

Remarks

Removes a specified DisplayPropertyValue from the collection. When a DisplayPropertyValue is removed from the collection, all subsequent DisplayPropertyValue objects move up one index in the collection and the collection count is decremented.

Permissions

See Also

Reference

DisplayPropertyValueCollection Class

DisplayPropertyValueCollection Members

Remove Overload

Microsoft.CommerceServer.Marketing Namespace