다음을 통해 공유


DataSourceElement 클래스

데이터 소스 요소를 구성 파일 내에서 XML 태그로 나타냅니다.

상속 계층 구조

Object
  ConfigurationElement
    Microsoft.VisualStudio.TestTools.UnitTesting.DataSourceElement

네임스페이스:  Microsoft.VisualStudio.TestTools.UnitTesting
어셈블리:  Microsoft.VisualStudio.QualityTools.UnitTestFramework(Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

구문

‘선언
Public NotInheritable Class DataSourceElement _
    Inherits ConfigurationElement
public sealed class DataSourceElement : ConfigurationElement
public ref class DataSourceElement sealed : public ConfigurationElement
[<Sealed>]
type DataSourceElement =  
    class 
        inherit ConfigurationElement 
    end
public final class DataSourceElement extends ConfigurationElement

DataSourceElement 형식에서는 다음과 같은 멤버를 노출합니다.

생성자

  이름 설명
Public 메서드 DataSourceElement DataSourceElement 클래스의 새 인스턴스를 초기화합니다.

위쪽

속성

  이름 설명
Public 속성 ConnectionString app.config 파일에서 <connectionStrings> 섹션의 연결 문자열 설정 요소를 가져오거나 설정합니다.
Public 속성 DataAccessMethod app.config 파일의 데이터 소스 액세스 메서드 요소를 가져오거나 설정합니다.
Public 속성 DataTableName app.config 파일의 테이블 이름 설정 요소를 가져오거나 설정합니다.
Public 속성 ElementInformation ConfigurationElement 개체의 사용자 지정할 수 없는 정보와 기능을 포함하는 ElementInformation 개체를 가져옵니다. (ConfigurationElement에서 상속됨)
Protected 속성 ElementProperty ConfigurationElement 개체 자체를 나타내는 ConfigurationElementProperty 개체를 가져옵니다. (ConfigurationElement에서 상속됨)
Protected 속성 Item(ConfigurationProperty) 이 구성 요소의 속성이나 특성을 가져오거나 설정합니다. (ConfigurationElement에서 상속됨)
Protected 속성 Item(String) 이 구성 요소의 속성, 특성 또는 자식 요소를 가져오거나 설정합니다. (ConfigurationElement에서 상속됨)
Public 속성 LockAllAttributesExcept 잠긴 특성의 컬렉션을 가져옵니다. (ConfigurationElement에서 상속됨)
Public 속성 LockAllElementsExcept 잠긴 요소의 컬렉션을 가져옵니다. (ConfigurationElement에서 상속됨)
Public 속성 LockAttributes 잠긴 특성의 컬렉션을 가져옵니다. (ConfigurationElement에서 상속됨)
Public 속성 LockElements 잠긴 요소의 컬렉션을 가져옵니다. (ConfigurationElement에서 상속됨)
Public 속성 LockItem 요소가 잠겨 있는지 여부를 나타내는 값을 가져오거나 설정합니다. (ConfigurationElement에서 상속됨)
Public 속성 Name app.config 파일의 데이터 소스 이름 설정 요소를 가져오거나 설정합니다.
Protected 속성 Properties 속성 컬렉션을 가져옵니다. (ConfigurationElement에서 상속됨)

위쪽

메서드

  이름 설명
Protected 메서드 DeserializeElement 구성 파일에서 XML을 읽습니다. (ConfigurationElement에서 상속됨)
Public 메서드 Equals 현재 ConfigurationElement 인스턴스를 지정된 개체와 비교합니다. (ConfigurationElement에서 상속됨)
Public 메서드 GetHashCode 현재 ConfigurationElement 인스턴스를 나타내는 고유 값을 가져옵니다. (ConfigurationElement에서 상속됨)
Public 메서드 GetType 현재 인스턴스의 Type을 가져옵니다. (Object에서 상속됨)
Protected 메서드 Init ConfigurationElement 개체를 초기 상태로 설정합니다. (ConfigurationElement에서 상속됨)
Protected 메서드 InitializeDefault ConfigurationElement 개체 값의 기본 집합을 초기화하는 데 사용됩니다. (ConfigurationElement에서 상속됨)
Protected 메서드 IsModified 파생 클래스에서 구현될 때 이 구성 요소가 마지막으로 저장되거나 로드된 이후 수정되었는지 여부를 나타냅니다. (ConfigurationElement에서 상속됨)
Public 메서드 IsReadOnly ConfigurationElement 개체가 읽기 전용인지 여부를 나타내는 값을 가져옵니다. (ConfigurationElement에서 상속됨)
Protected 메서드 Reset 잠금 및 속성 컬렉션을 비롯하여 ConfigurationElement 개체의 내부 상태를 다시 설정합니다. (ConfigurationElement에서 상속됨)
Protected 메서드 ResetModified 파생 클래스에서 구현될 때 IsModified 메서드의 값을 false로 다시 설정합니다. (ConfigurationElement에서 상속됨)
Protected 메서드 SerializeElement 파생 클래스에서 구현될 때 구성 요소의 내용을 구성 파일에 씁니다. (ConfigurationElement에서 상속됨)
Protected 메서드 SerializeToXmlElement 파생 클래스에서 구현될 때 구성 요소의 외부 태그를 구성 파일에 씁니다. (ConfigurationElement에서 상속됨)
Protected 메서드 SetReadOnly ConfigurationElement 개체와 모든 하위 요소에 대한 IsReadOnly 속성을 설정합니다. (ConfigurationElement에서 상속됨)
Public 메서드 ToString 현재 개체를 나타내는 문자열을 반환합니다. (Object에서 상속됨)
Protected 메서드 Unmerge ConfigurationElement 개체를 수정하여 저장되지 않아야 하는 값을 모두 제거합니다. (ConfigurationElement에서 상속됨)

위쪽

스레드로부터의 안전성

이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

참고 항목

참조

Microsoft.VisualStudio.TestTools.UnitTesting 네임스페이스

기타 리소스

Working with Unit Tests