NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ADOConnection.UserID

Gets or sets the user ID to use when connecting.

[Visual Basic]
Public Property UserID As String
[C#]
public string UserID {get; set;}
[C++]
public: __property String* get_UserID();
public: __property void set_UserID(String*);
[JScript]
public function get UserID() : String;
public function set UserID(String);

Property Value

The user ID to use when connecting. The default value is an empty string.

Exceptions

Exception Type Condition
OpenConnectionPropertySet The connection is Open. Close the connection.

Remarks

The UserID property overwrites the cooresponding property within the connection string.

Note   This property is read-only while the connection is open.

Example

The following example shows how to create a connection and set many of its properties.

See Also

ADOConnection Class | ADOConnection Members | System.Data.ADO Namespace | ConnectionString | ConnectionTimeout | Database | IsolationLevel | DataSource | Password