다음을 통해 공유


DataConnectionProperties.AddProperty 메서드 (PropertyDescriptor, array<Attribute )

기본적으로 현재 인스턴스의 인식 된 속성의 컬렉션에 새 속성을 동적으로 추가 된 DataConnectionProperties 클래스입니다.

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

구문

‘선언
Protected Function AddProperty ( _
    descriptor As PropertyDescriptor, _
    ParamArray attributes As Attribute() _
) As PropertyDescriptor
protected PropertyDescriptor AddProperty(
    PropertyDescriptor descriptor,
    params Attribute[] attributes
)
protected:
PropertyDescriptor^ AddProperty(
    PropertyDescriptor^ descriptor, 
    ... array<Attribute^>^ attributes
)
member AddProperty : 
        descriptor:PropertyDescriptor * 
        attributes:Attribute[] -> PropertyDescriptor 
protected function AddProperty(
    descriptor : PropertyDescriptor, 
    ... attributes : Attribute[]
) : PropertyDescriptor

매개 변수

  • attributes
    형식: array<System.Attribute[]
    속성에 적용할 수 있는 특성의 집합.

반환 값

형식: System.ComponentModel.PropertyDescriptor
새로 추가 된 속성 설명자입니다.

예외

예외 조건
ArgumentNullException

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

ArgumentException

지정한 속성이 이미 있습니다.

설명

반환 값은 실제로 다른가 입력된 속성 설명자는 특수 연결 속성 설명자에서 래핑됩니다 PropertyDescriptor 인스턴스를 전달 하는.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

DataConnectionProperties 클래스

AddProperty 오버로드

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

RemoveProperty