This enumeration can be used when creating a custom provider to indicate whether a specific property is required or supported, and how it should be set. You can use bitwise combinations of the values in this enumeration. Optional indicates that the user doesn’t need to specify a value for this property before the data source is initialized, while Required indicates that it must be set first. Read and Write indicate whether the value can be read or modified.

public enum PropertyAttributes {

   NotSupported = 0x00000000,

   Required = 0x00000001,

   Optional = 0x00000002,

   Read = 0x00000200,

   Write = 0x00000400



System.Object System.ValueType System.Enum(System.IComparable, System.IFormattable, System.IConvertible) PropertyAttributes

Get ADO.NET in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.