Share via


AssociationAttribute.DeleteRule Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets delete behavior for an association.

Namespace:  System.Data.Linq.Mapping
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

Syntax

'Declaration
Public Property DeleteRule As String
public string DeleteRule { get; set; }

Property Value

Type: System.String
A string representing the rule.

Remarks

If set to null, no delete behavior is added. For example, "CASCADE" would add "ON DELETE CASCADE" to the foreign-key relationship.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.