ADODC::UserName Property

 

Gets or sets a value that represents a user of an ADO Recordset object.

Namespace:   Microsoft.VisualBasic.Compatibility.VB6
Assembly:  Microsoft.VisualBasic.Compatibility.Data (in Microsoft.VisualBasic.Compatibility.Data.dll)

public:
[SRDescriptionAttribute("ADODC_DESCUserName")]
property String^ UserName {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

A String that contains a user name.

The user-name syntax depends on the data source. When a UserName and Password are supplied, the control uses the values to create a connection string (ConnectionString property).

System_CAPS_noteNote

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

.NET Framework
Available since 1.1
Return to top
Show: