SqlMethodAttribute
using System;
namespace Microsoft.SqlServer.Server
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
[Obsolete("Use the Microsoft.SqlServer.Server package instead.")]
public sealed class SqlMethodAttribute : SqlFunctionAttribute
{
public bool InvokeIfReceiverIsNull {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient);
}
set {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient);
}
}
public bool IsMutator {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient);
}
set {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient);
}
}
public bool OnNullCall {
get {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient);
}
set {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient);
}
}
public SqlMethodAttribute()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_DataSqlClient);
}
}
}