DataConnectionProperties.AddProperty 메서드 (String, Type, array<Attribute[])

동적으로이 데이터 연결 속성 인스턴스는 기본적으로 인식 되는 속성의 컬렉션에 새 속성을 추가 합니다.

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

구문

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

매개 변수

  • name
    형식: String

    속성 이름입니다.

  • type
    형식: Type

    속성의 데이터 형식입니다.

  • attributes
    형식: array<Attribute[]

    집합 속성에 연결 하는 특성입니다.

반환 값

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

예외

예외 조건
ArgumentNullException

name 또는 type 매개 변수는 null입니다.

InvalidOperationException

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

.NET Framework 보안

참고 항목

참조

DataConnectionProperties 클래스

AddProperty 오버로드

Microsoft.VisualStudio.Data 네임스페이스

RemoveProperty