Microsoft.SqlServer.Server.SqlMethodAttribute Class

Indicates the determinism and data access properties of a method or property on a user-defined type (UDT). The properties on the attribute reflect the physical characteristics that are used when the type is registered with SQL Server.

See Also: SqlMethodAttribute Members


[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class SqlMethodAttribute : SqlFunctionAttribute


For a property, the Microsoft.SqlServer.Server.SqlMethodAttribute should be used on the setter or the getter directly.

Microsoft.SqlServer.Server.SqlMethodAttribute inherits from a Microsoft.SqlServer.Server.SqlFunctionAttribute, so Microsoft.SqlServer.Server.SqlMethodAttribute inherits the FillRowMethodName and TableDefinition fields from Microsoft.SqlServer.Server.SqlFunctionAttribute. Note that it is not possible to write a table-valued method, although the names of these fields might suggest that it is possible.


Namespace: Microsoft.SqlServer.Server
Assembly: System.Data (in System.Data.dll)
Assembly Versions:
Since: .NET 2.0