This documentation is archived and is not being maintained.

DatabaseAttribute::Name Property

Gets or sets the name of the database.

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

property String^ Name {
	String^ get ();
	void set (String^ value);

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.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5