Returns if the value is the platform default value.
命名空间: Microsoft.SqlServer.Dac.Model
程序集: Microsoft.SqlServer.Dac.Extensions(在 Microsoft.SqlServer.Dac.Extensions.dll 中)
语法
声明
Public Function IsDefaultValue ( _
instance As TSqlObject, _
version As SqlServerVersion _
) As Boolean
用法
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
参数
- instance
类型:Microsoft.SqlServer.Dac.Model.TSqlObject
TSqlObject instance to determine the default property value for.
- version
类型:Microsoft.SqlServer.Dac.Model.SqlServerVersion
The SqlServerVersion to determine the default value for.
返回值
类型:System.Boolean
True if the property is the platform default. Otherwise false.
异常
异常 | 条件 |
---|---|
DacModelException | If the supplied instance is not the owner of this property. |