ModelPropertyClass.IsDefaultValue Method
Returns if the value is the platform default value.
Namespace: Microsoft.SqlServer.Dac.Model
Assembly: Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)
Syntax
'Declaration
Public Function IsDefaultValue ( _
instance As TSqlObject, _
version As SqlServerVersion _
) As Boolean
'Usage
Dim instance As ModelPropertyClass
Dim instance As TSqlObject
Dim version As SqlServerVersion
Dim returnValue As Boolean
returnValue = instance.IsDefaultValue(instance, _
version)
public bool IsDefaultValue(
TSqlObject instance,
SqlServerVersion version
)
public:
bool IsDefaultValue(
TSqlObject^ instance,
SqlServerVersion version
)
member IsDefaultValue :
instance:TSqlObject *
version:SqlServerVersion -> bool
public function IsDefaultValue(
instance : TSqlObject,
version : SqlServerVersion
) : boolean
Parameters
- instance
Type: Microsoft.SqlServer.Dac.Model.TSqlObject
TSqlObject instance to determine the default property value for.
- version
Type: Microsoft.SqlServer.Dac.Model.SqlServerVersion
The SqlServerVersion to determine the default value for.
Return Value
Type: System.Boolean
True if the property is the platform default. Otherwise false.
Exceptions
Exception | Condition |
---|---|
DacModelException | If the supplied instance is not the owner of this property. |