PropertyAttributes 枚举

注意:此枚举现在已过时。

指定属性 (Property) 的属性 (Attribute)。

此枚举有一个 FlagsAttribute 属性,允许其成员值按位组合。

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

语法

声明
<FlagsAttribute> _
<ObsoleteAttribute("PropertyAttributes has been deprecated.  https://go.microsoft.com/fwlink/?linkid=14202")> _
Public Enumeration PropertyAttributes
用法
Dim instance As PropertyAttributes
[FlagsAttribute] 
[ObsoleteAttribute("PropertyAttributes has been deprecated.  https://go.microsoft.com/fwlink/?linkid=14202")] 
public enum PropertyAttributes
[FlagsAttribute] 
[ObsoleteAttribute(L"PropertyAttributes has been deprecated.  https://go.microsoft.com/fwlink/?linkid=14202")] 
public enum class PropertyAttributes
/** @attribute FlagsAttribute() */ 
/** @attribute ObsoleteAttribute("PropertyAttributes has been deprecated.  https://go.microsoft.com/fwlink/?linkid=14202") */ 
public enum PropertyAttributes
FlagsAttribute 
ObsoleteAttribute("PropertyAttributes has been deprecated.  https://go.microsoft.com/fwlink/?linkid=14202") 
public enum PropertyAttributes

成员

  成员名称 说明
由 .NET Compact Framework 支持 NotSupported 提供程序不支持该属性。 
由 .NET Compact Framework 支持 Optional 在初始化数据源之前,用户不必为此属性指定值。 
由 .NET Compact Framework 支持 Read 用户可以读取该属性。 
由 .NET Compact Framework 支持 Required 在初始化数据源之前,用户必须为此属性指定值。 
由 .NET Compact Framework 支持 Write 用户可以写入该属性。 

平台

Windows 98、Windows 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

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:1.0、1.1
在 2.0 中过时(编译器警告)

.NET Compact Framework

受以下版本支持:1.0
在 2.0 中过时(编译器警告)

请参见

参考

System.Data 命名空间