ADODC.UserName Property

Definition

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

public:
 property System::String ^ UserName { System::String ^ get(); void set(System::String ^ value); };
[Microsoft.VisualBasic.Compatibility.VB6.SRDescription("ADODC_DESCUserName")]
public string UserName { get; set; }
[<Microsoft.VisualBasic.Compatibility.VB6.SRDescription("ADODC_DESCUserName")>]
member this.UserName : string with get, set
Public Property UserName As String

Property Value

A String that contains a user name.

Attributes

Remarks

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).

Note

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.

Applies to