SqlDataSourceEnumerator.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Type Name="SqlDataSourceEnumerator" FullName="System.Data.Sql.SqlDataSourceEnumerator">
  3. <TypeSignature Language="C#" Value="public sealed class SqlDataSourceEnumerator : System.Data.Common.DbDataSourceEnumerator" />
  4. <AssemblyInfo>
  5. <AssemblyName>System.Data</AssemblyName>
  6. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  7. </AssemblyInfo>
  8. <Base>
  9. <BaseTypeName>System.Data.Common.DbDataSourceEnumerator</BaseTypeName>
  10. </Base>
  11. <Interfaces />
  12. <Docs>
  13. <since version=".NET 2.0" />
  14. <remarks>
  15. <attribution license="cc4" from="Microsoft" modified="false" />
  16. <para>Both SQL Server 2000 and SQL Server 2005 make it possible for applications to determine the existence of SQL Server instances within the current network. The <see cref="T:System.Data.Sql.SqlDataSourceEnumerator" /> class exposes this information to the application developer, providing a <see cref="T:System.Data.DataTable" /> containing information about all the available servers. This returned table contains a list of server instances that matches the list provided when a user attempts to create a new connection, and on the <paramref name="Connection Properties" /> dialog box, expands the drop-down list containing all the available servers.</para>
  17. </remarks>
  18. <summary>
  19. <attribution license="cc4" from="Microsoft" modified="false" />
  20. <para>Provides a mechanism for enumerating all available instances of SQL Server within the local network.</para>
  21. </summary>
  22. </Docs>
  23. <Members>
  24. <Member MemberName="GetDataSources">
  25. <MemberSignature Language="C#" Value="public override System.Data.DataTable GetDataSources ();" />
  26. <MemberType>Method</MemberType>
  27. <ReturnValue>
  28. <ReturnType>System.Data.DataTable</ReturnType>
  29. </ReturnValue>
  30. <Parameters />
  31. <Docs>
  32. <since version=".NET 2.0" />
  33. <remarks>
  34. <attribution license="cc4" from="Microsoft" modified="false" />
  35. <para>The table returned by this method contains the following columns, all of which contain strings:</para>
  36. <list type="table">
  37. <listheader>
  38. <item>
  39. <term>
  40. <para>Column</para>
  41. </term>
  42. <description>
  43. <para>Description</para>
  44. </description>
  45. </item>
  46. </listheader>
  47. <item>
  48. <term>
  49. <para>ServerName</para>
  50. </term>
  51. <description>
  52. <para>Name of the server.</para>
  53. </description>
  54. </item>
  55. <item>
  56. <term>
  57. <para>InstanceName</para>
  58. </term>
  59. <description>
  60. <para>Name of the server instance. Blank if the server is running as the default instance.</para>
  61. </description>
  62. </item>
  63. <item>
  64. <term>
  65. <para>IsClustered</para>
  66. </term>
  67. <description>
  68. <para>Indicates whether the server is part of a cluster.</para>
  69. </description>
  70. </item>
  71. <item>
  72. <term>
  73. <para>Version</para>
  74. </term>
  75. <description>
  76. <para>Version of the server (8.00.x for SQL Server 2000, and 9.00.x for SQL Server 2005).</para>
  77. </description>
  78. </item>
  79. </list>
  80. <block subset="none" type="note">
  81. <para>Due to the nature of the mechanism used by <see cref="T:System.Data.Sql.SqlDataSourceEnumerator" /> to locate data sources on a network, the method will not always return a complete list of the available servers, and the list might not be the same on every call. If you plan to use this function to let users select a server from a list, make sure that you always also supply an option to type in a name that is not in the list, in case the server enumeration does not return all the available servers. In addition, this method may take a significant amount of time to execute, so be careful about calling it when performance is critical.</para>
  82. </block>
  83. </remarks>
  84. <summary>
  85. <attribution license="cc4" from="Microsoft" modified="false" />
  86. <para>Retrieves a <see cref="T:System.Data.DataTable" /> containing information about all visible SQL Server 2000 or SQL Server 2005 instances.</para>
  87. </summary>
  88. <returns>
  89. <attribution license="cc4" from="Microsoft" modified="false" />
  90. <para>Returns a <see cref="T:System.Data.DataTable" /> containing information about the visible SQL Server instances.</para>
  91. </returns>
  92. </Docs>
  93. <AssemblyInfo>
  94. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  95. </AssemblyInfo>
  96. </Member>
  97. <Member MemberName="Instance">
  98. <MemberSignature Language="C#" Value="public static System.Data.Sql.SqlDataSourceEnumerator Instance { get; }" />
  99. <MemberType>Property</MemberType>
  100. <ReturnValue>
  101. <ReturnType>System.Data.Sql.SqlDataSourceEnumerator</ReturnType>
  102. </ReturnValue>
  103. <Docs>
  104. <value>To be added.</value>
  105. <since version=".NET 2.0" />
  106. <remarks>
  107. <attribution license="cc4" from="Microsoft" modified="false" />
  108. <para>The <see cref="T:System.Data.Sql.SqlDataSourceEnumerator" /> class does not provide a constructor. Use the <see cref="P:System.Data.Sql.SqlDataSourceEnumerator.Instance" /> property to retrieve an instance of the class instead.</para>
  109. </remarks>
  110. <summary>
  111. <attribution license="cc4" from="Microsoft" modified="false" />
  112. <para>Gets an instance of the <see cref="T:System.Data.Sql.SqlDataSourceEnumerator" />, which can be used to retrieve information about available SQL Server instances.</para>
  113. </summary>
  114. </Docs>
  115. <AssemblyInfo>
  116. <AssemblyVersion>2.0.0.0</AssemblyVersion>
  117. </AssemblyInfo>
  118. </Member>
  119. </Members>
  120. </Type>