Share via


DataSourceInformation.Contains 메서드

검색 된 Boolean 지정 된 속성이 데이터 소스 정보 인스턴스가 포함 되는지 여부를 나타내는 값입니다.

네임스페이스:  Microsoft.VisualStudio.Data.Framework
어셈블리:  Microsoft.VisualStudio.Data.Framework(Microsoft.VisualStudio.Data.Framework.dll)

구문

‘선언
Public Function Contains ( _
    propertyName As String _
) As Boolean
public bool Contains(
    string propertyName
)
public:
virtual bool Contains(
    String^ propertyName
) sealed
abstract Contains : 
        propertyName:string -> bool  
override Contains : 
        propertyName:string -> bool
public final function Contains(
    propertyName : String
) : boolean

매개 변수

  • propertyName
    형식: String

    테스트할 속성의 이름입니다.

반환 값

형식: Boolean
true 이 인스턴스에서 데이터 원본 정보입니다; 지정된 된 속성이 포함 된 경우 그렇지 않으면 false.

구현

IVsDataSourceInformation.Contains(String)

예외

예외 조건
ArgumentNullException

propertyName 매개 변수가 nullNull 참조(Visual Basic의 경우 Nothing)입니다.

설명

클라이언트가 실제로 필요할 때까지 값의 검색을 저장할 수 있습니다 실제로 값을 검색 하기 전에이 메서드를 호출 하는 것이 좋습니다.

.NET Framework 보안

참고 항목

참조

DataSourceInformation 클래스

Microsoft.VisualStudio.Data.Framework 네임스페이스