SqlCeResultSet.IsSetAsDefault 方法

确定在指定序号位置的字段是否被标记为使用基础默认值。

命名空间: System.Data.SqlServerCe
程序集: System.Data.SqlServerCe(在 system.data.sqlserverce.dll 中)

语法

声明
Public Function IsSetAsDefault ( _
    ordinal As Integer _
) As Boolean
用法
Dim instance As SqlCeResultSet
Dim ordinal As Integer
Dim returnValue As Boolean

returnValue = instance.IsSetAsDefault(ordinal)
public bool IsSetAsDefault (
    int ordinal
)
public:
bool IsSetAsDefault (
    int ordinal
)
public boolean IsSetAsDefault (
    int ordinal
)
public function IsSetAsDefault (
    ordinal : int
) : boolean
不适用。

参数

  • ordinal
    将从其中检索值的列的序号位置。

返回值

如果指定的字段被标记为使用基础默认值,则为 true;否则为 false。

备注

对于新构造的记录中所有未修改的列或通过调用 SetDefault 函数而被显式标记的列,此函数将返回 true。

如果在指定的索引处不存在任何字段,则会引发 IndexOutOfRangeException

平台

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

Windows Vista、Microsoft Windows XP SP2 和 Windows Server 2003 SP1 支持 Microsoft .NET Framework 3.0。

版本信息

.NET Framework

受以下版本支持:3.0

.NET Compact Framework

受以下版本支持:2.0

请参见

参考

SqlCeResultSet 类
SqlCeResultSet 成员
System.Data.SqlServerCe 命名空间