DataConnectionProperties.ShouldPersistProperty 메서드

연결 문자열을 작성 하는 경우는 속성을 유지 해야 하는지 여부를 나타냅니다.

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

구문

‘선언
Protected Overridable Function ShouldPersistProperty ( _
    name As String _
) As Boolean
protected virtual bool ShouldPersistProperty(
    string name
)
protected:
virtual bool ShouldPersistProperty(
    String^ name
)
abstract ShouldPersistProperty : 
        name:string -> bool  
override ShouldPersistProperty : 
        name:string -> bool
protected function ShouldPersistProperty(
    name : String
) : boolean

매개 변수

  • name
    형식: String

    속성 이름입니다.

반환 값

형식: Boolean
false 지정된 된 속성 형식이 아닌 경우 설정 됩니다; 기본 값으로 설정 된 경우 그렇지 않으면 true.

예외

예외 조건
ArgumentNullException

name 매개 변수가 nullNull 참조(Visual Basic의 경우 Nothing)인 경우

설명

기본 구현에서이 메서드는 해당 ToDisplayStringToSafeString 속성을 기본적으로 인식 된 연결에 포함 되어야 하는지 여부를 확인 하는 방법 문자열 표현 현재 DataConnectionProperties 인스턴스.

이 메서드의 기본 구현은 false 지정된 된 속성 인식 되지 않거나 설정 되지 않으면 기본값입니다;로 설정 된 경우 그렇지 않으면 true.

.NET Framework 보안

참고 항목

참조

DataConnectionProperties 클래스

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