通过


OracleConnectionStringBuilder.UserID 属性

定义

获取或设置连接到 Oracle 时要使用的用户 ID。

public:
 property System::String ^ UserID { System::String ^ get(); void set(System::String ^ value); };
public string UserID { get; set; }
member this.UserID : string with get, set
Public Property UserID As String

属性值

属性的值 UserID ,或者 Empty 未提供任何值。

注解

此属性对应于连接字符串中的“用户 ID”、“user”和“uid”键。

如果尝试设置属性时传入的值为 null,则会 UserID 重置该属性。 如果未设置该值,并且开发人员尝试检索属性,则返回值为 Empty

适用于

另请参阅