Name Property
Collapse the table of content
Expand the table of content

DatabaseAttribute.Name Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the name of the database.

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

'Declaration
Public Property Name As String

Property Value

Type: System.String
The name.

This property is required if you use the DatabaseAttribute attribute.

The information is used only if the connection itself does not specify the database name.

<Database(Name:="Database#5")> _
Public Class Database5
    Inherits DataContext
    ...
End Class

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft