Gets an instance of the SqlDataSourceEnumerator, which can be used to retrieve information about available SQL Server instances.
Assembly: System.Data (in System.Data.dll)
The SqlDataSourceEnumerator class does not provide a constructor. Use the property to retrieve an instance of the class instead.
The following console application displays a list of all the available SQL Server 2005 instances within the local network. This code uses the Select method to filter the rows in the table returned by the GetDataSources method.
Available since 2.0