Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DisplayPropertyValueCollection Class