Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataSource Class

 

Defines a data source for a Web performance test.

Namespace:   Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.DataSource

[SerializableAttribute]
public class DataSource : ICloneable

NameDescription
System_CAPS_pubmethodDataSource()

Initializes a new instance of the DataSource class.

NameDescription
System_CAPS_pubpropertyConnection

Gets the connection string that is used to connect to the data source. The format for the connection string is the same as for the ConnectionString property of the System.Data.OleDbConnection class.

System_CAPS_pubpropertyName

Gets or sets the name for the data source that uniquely identifies the data source from other data sources in the Web performance test.

System_CAPS_pubpropertyProvider

Gets the provider-invariant name for this data source. Example: System.Data.OleDb.

System_CAPS_pubpropertyTables

A DataSourceTableCollection object that contains a DataSourceTable object for each table in the data source that can be used by the Web performance test.

NameDescription
System_CAPS_pubmethodClone()

Creates a new instance of the data source.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSetConnection(String, String)

Sets the provider and connection string for the data source.

System_CAPS_pubmethodSetConnection(String, String, String)

Sets the provider and connection string and enables a different string that you can use as a display value.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticCsvProvider

Specifies a .csv file as a data source for a Web performance test.

System_CAPS_pubfieldSystem_CAPS_staticXmlProvider

Specifies an XML data source for a Web performance test.

When no data source is specified, System.Data.OleDb is used as the default data provider.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: