[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Specifies that a DomainService method is a delete method.
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Thetype exposes the following members.
|Equals||(Inherited from Attribute.)|
|Finalize||(Inherited from Object.)|
|GetHashCode||(Inherited from Attribute.)|
|GetType||(Inherited from Object.)|
|IsDefaultAttribute||(Inherited from Attribute.)|
|Match||(Inherited from Attribute.)|
|MemberwiseClone||(Inherited from Object.)|
|ToString||(Inherited from Object.)|
You apply the attribute to a method to indicate that the method is a delete method. If your method matches the expected method signature for a delete method, you do not have to apply the . The RIA Services framework will infer that a method with the expected delete signature should be treated as a delete operation. You apply the IgnoreAttribute to a method to prevent the RIA Services framework from generating a domain operation for that method.
The following shows the expected signature for a delete method:
Delete or Remove
<Delete()> (Visual Basic)
public void DeleteProduct(Product product) (C#)
Public Sub DeleteProduct(ByVal product As Product) (Visual Basic)