DataAccessKind Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes the type of access to user data for a user-defined method or function.
public enum class DataAccessKind
[System.Serializable]
public enum DataAccessKind
public enum DataAccessKind
[<System.Serializable>]
type DataAccessKind =
type DataAccessKind =
Public Enum DataAccessKind
- Inheritance
-
DataAccessKind
- Attributes
Fields
Name | Value | Description |
---|---|---|
None | 0 | The method or function does not access user data. |
Read | 1 | The method or function reads user data. |
Remarks
Describes the type of access to user data for a user-defined method or function.
This enumeration is used in SqlMethodAttribute and SqlFunctionAttribute to indicate whether the method or function uses ADO.NET to connect back to the database using the "context connection."
Note that methods and functions are not allowed to make changes to the database, so the options for this enumeration are None
(meaning no data-access performed by the method or function) and Read
(meaning that the method or function perform read-only data-access operations, such as executing SELECT statements).