DataAccessKind Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Describes the type of access to user data for a user-defined method or function.

Namespace:   Microsoft.SqlServer.Server
Assembly:  System.Data (in System.Data.dll)

[SerializableAttribute]
public enum DataAccessKind

Member nameDescription
None

The method or function does not access user data.

Read

The method or function reads user data.

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).

.NET Framework
Available since 2.0
Return to top
Show: