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)
Syntax
'Declaration
Public Function GetDefaultValue(Of T) ( _
version As SqlServerVersion _
) As T
'Usage
Dim instance As ModelPropertyClass
Dim version As SqlServerVersion
Dim returnValue As T
returnValue = instance.GetDefaultValue(version)
public T GetDefaultValue<T>(
SqlServerVersion version
)
public:
generic<typename T>
T GetDefaultValue(
SqlServerVersion version
)
member GetDefaultValue :
version:SqlServerVersion -> 'T
JScript does not support generic types and methods.
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.
Exceptions
Exception | Condition |
---|---|
InvalidCastException | If the property value cannot be cast to T. |