ModelPropertyClass.GetDefaultValue<T> Method (SqlServerVersion)

Returns the default property value.

Namespace:  Microsoft.SqlServer.Dac.Model
Assembly:  Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)

public T GetDefaultValue<T>(
	SqlServerVersion version
)

Type Parameters

T

Type of the property value.

Parameters

version
Type: Microsoft.SqlServer.Dac.Model.SqlServerVersion
The SqlServerVersion to return the default value for.

Return Value

Type: T
Default value for specified SqlServerVersion.

ExceptionCondition
InvalidCastException

If the property value cannot be cast to T.

Show: