다음을 통해 공유


TSqlObject.GetProperty<T> 메서드 (ModelPropertyClass)

Returns the property value.

네임스페이스:  Microsoft.SqlServer.Dac.Model
어셈블리:  Microsoft.SqlServer.Dac.Extensions(Microsoft.SqlServer.Dac.Extensions.dll)

구문

‘선언
Public Function GetProperty(Of T) ( _
    property As ModelPropertyClass _
) As T
‘사용 방법
Dim instance As TSqlObject 
Dim property As ModelPropertyClass 
Dim returnValue As T

returnValue = instance.GetProperty(property)
public T GetProperty<T>(
    ModelPropertyClass property
)
public:
generic<typename T>
T GetProperty(
    ModelPropertyClass^ property
)
member GetProperty : 
        property:ModelPropertyClass -> 'T 
JScript는 제네릭 형식 및 메서드를 지원하지 않습니다.

유형 매개 변수

  • T
    Property type.

매개 변수

반환 값

유형: T
Property Value.

예외

예외 조건
DacModelException

If property does not exists on the object.

InvalidCastException

If the property type cannot be cast to T.

참고 항목

참조

TSqlObject 클래스

GetProperty 오버로드

Microsoft.SqlServer.Dac.Model 네임스페이스