ModelPropertyClass.IsDefaultValue 方法

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

参数

返回值

类型:System.Boolean
True if the property is the platform default. Otherwise false.

异常

异常 条件
DacModelException

If the supplied instance is not the owner of this property.

请参阅

参考

ModelPropertyClass 类

Microsoft.SqlServer.Dac.Model 命名空间