TSqlObject.GetProperty Method

Definition

Overloads

GetProperty(ModelPropertyClass)

Returns the property value.

GetProperty<T>(ModelPropertyClass)

Returns the property value.

GetProperty(ModelPropertyClass)

Returns the property value.

C#
public object GetProperty(Microsoft.SqlServer.Dac.Model.ModelPropertyClass property);

Parameters

property
ModelPropertyClass

Property.

Returns

Property Value.

Exceptions

If property does not exists on the object.

Applies to

Microsoft.SQLServer.DacFx 162.2.111 和其他版本
產品 版本
Microsoft.SQLServer.DacFx 140.3881.1, 150.18208.0, 160.2004021.0, 161.6374.0, 162.2.111

GetProperty<T>(ModelPropertyClass)

Returns the property value.

C#
public T GetProperty<T>(Microsoft.SqlServer.Dac.Model.ModelPropertyClass property);

Type Parameters

T

Property type.

Parameters

property
ModelPropertyClass

Property.

Returns

T

Property Value.

Exceptions

If property does not exists on the object.

If the property type cannot be cast to T.

Applies to

Microsoft.SQLServer.DacFx 162.2.111 和其他版本
產品 版本
Microsoft.SQLServer.DacFx 140.3881.1, 150.18208.0, 160.2004021.0, 161.6374.0, 162.2.111