Gets or sets the search method for SQL server instances on local server. (From Object Or Registry)
Namespace: ZsZ_Studio.ControlsAssembly: SQL.Connection.Control (in SQL.Connection.Control.dll) Version: 1.0.4947.20663 (1.0.0.0)
public SQLConnectionControl..::..InstanceSearchMethodOnLocal BrowseForLocalInstancesMethod { get; set; }
public SQLConnectionControl..::..InstanceSearchMethodOnLocal BrowseForLocalInstancesMethod { get; set; }
Public Property BrowseForLocalInstancesMethod As SQLConnectionControl..::..InstanceSearchMethodOnLocal
Get
Set
Public Property BrowseForLocalInstancesMethod As SQLConnectionControl..::..InstanceSearchMethodOnLocal
Get
Set
public:
property SQLConnectionControl..::..InstanceSearchMethodOnLocal BrowseForLocalInstancesMethod {
SQLConnectionControl..::..InstanceSearchMethodOnLocal get ();
void set (SQLConnectionControl..::..InstanceSearchMethodOnLocal value);
}
public:
property SQLConnectionControl..::..InstanceSearchMethodOnLocal BrowseForLocalInstancesMethod {
SQLConnectionControl..::..InstanceSearchMethodOnLocal get ();
void set (SQLConnectionControl..::..InstanceSearchMethodOnLocal value);
}
Property Value
Type:
SQLConnectionControl InstanceSearchMethodOnLocalIn the first method (From Object) does not always return a consistent result, in this case use the another option (From Registry).
It is possible that Administrator privileges required to access Windows registry.
The 'search from registry' method is much faster!
(VB.NET) This sample shows how to set the property.
Dim scc As New ZsZ_Studio.Controls.SQLConnectionControl
scc.Location = New Point(10, 10)
scc.BrowseForLocalInstancesMethod = ZsZ_Studio.Controls.SQLConnectionControl.InstanceSearchMethodOnLocal.FromRegistry
Me.Controls.Add(scc)
Dim scc As New ZsZ_Studio.Controls.SQLConnectionControl
scc.Location = New Point(10, 10)
scc.BrowseForLocalInstancesMethod = ZsZ_Studio.Controls.SQLConnectionControl.InstanceSearchMethodOnLocal.FromRegistry
Me.Controls.Add(scc)