SqlConnectionStringBuilder.WorkstationID Property

Definition

获取或设置连接到 SQL Server 的工作站的名称。Gets or sets the name of the workstation connecting to SQL Server.

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

Property Value

String

WorkstationID 属性的值,或者,如果未提供任何值,则为 String.EmptyThe value of the WorkstationID property, or String.Empty if none has been supplied.

Exceptions

若要将值设置为 null,请使用 ValueTo set the value to null, use Value.

Remarks

此属性与连接字符串内的“Workstation ID”和“wsid”键相对应。This property corresponds to the "Workstation ID" and "wsid" keys within the connection string.

Applies to

See also