Dela via


DataSource Members

Include Protected Members
Include Inherited Members

Defines a data source for a Web test.

The DataSource type exposes the following members.

Constructors

 

Name

Description

Public method

DataSource

Initializes a new instance of the DataSource class.

Top

Methods

 

Name

Description

Public method

Clone

Creates a new instance of the data source.

Public method

Equals

Determines whether the specified Object is equal to the current Object. (Inherited from Object.)

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

Public method

GetHashCode

Serves as a hash function for a particular type. (Inherited from Object.)

Public method

GetType

Gets the type of the current instance. (Inherited from Object.)

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Public method

SetConnection

Overloaded.

Public method

ToString

Returns a string that represents the current object. (Inherited from Object.)

Top

Fields

 

Name

Description

Public fieldStatic member

CsvProvider

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

Public fieldStatic member

XmlProvider

Specifies an XML data source for a Web test.

Top

Properties

 

Name

Description

Public property

Connection

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.

Public property

Name

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

Public property

Provider

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

Public property

Tables

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

Top

See Also

Reference

DataSource Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace