Partager via


DataAttribute.Storage Property

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

Gets or sets a private storage field to hold the value from a column.

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

Syntax

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

Property Value

Type: System.String
The name of the storage field.

Remarks

Storage property values are case sensitive. For example, ensure that values used in the attribute for the Storage property match the case for the corresponding property names used elsewhere in the code. This applies to all .NET programming languages, even those which are not typically case sensitive, including Visual Basic.

Examples

<Column(Storage:=_CustomerID)> _
Public CustomerID As String 
[Column(Storage="_CustomerID")]
public string CustomerID
{
}

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.