Export (0) Print
Expand All

SqlMethodAttribute.InvokeIfReceiverIsNull Property

Indicates whether SQL Server should invoke the method on null instances.

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

public bool InvokeIfReceiverIsNull { get; set; }

Property Value

Type: System.Boolean
true if SQL Server should invoke the method on null instances; otherwise false. If the method cannot be invoked (because of an attribute on the method), the SQL Server DbNull is returned.

The default value for the InvokeIfReceiverIsNull property is false.

That is, the method is not invoked on a null instance. If InvokeIfReceiverIsNull is true, the return value of the method depends upon its type. If the return type of the method is nullable, the distinguished null value for the type is returned. If the return type is non-nullable, the default CLR value for the type is returned. The default value for reference types is null. The default value for a value type is the value that is returned when you call the default constructor for the type.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft