Partilhar via


ODataUtils.SetNullValueReaderBehavior Method

Adds a transient annotation to indicate how null values for the specified property should be read.

Namespace:  Microsoft.Data.OData
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub SetNullValueReaderBehavior ( _
    model As IEdmModel, _
    property As IEdmProperty, _
    nullValueReadBehaviorKind As ODataNullValueBehaviorKind _
)
'Usage
Dim model As IEdmModel 
Dim property As IEdmProperty 
Dim nullValueReadBehaviorKind As ODataNullValueBehaviorKind 

model.SetNullValueReaderBehavior(property, _
    nullValueReadBehaviorKind)
public static void SetNullValueReaderBehavior(
    this IEdmModel model,
    IEdmProperty property,
    ODataNullValueBehaviorKind nullValueReadBehaviorKind
)
[ExtensionAttribute]
public:
static void SetNullValueReaderBehavior(
    IEdmModel^ model, 
    IEdmProperty^ property, 
    ODataNullValueBehaviorKind nullValueReadBehaviorKind
)
static member SetNullValueReaderBehavior : 
        model:IEdmModel * 
        property:IEdmProperty * 
        nullValueReadBehaviorKind:ODataNullValueBehaviorKind -> unit
public static function SetNullValueReaderBehavior(
    model : IEdmModel, 
    property : IEdmProperty, 
    nullValueReadBehaviorKind : ODataNullValueBehaviorKind
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmModel. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).

See Also

Reference

ODataUtils Class

Microsoft.Data.OData Namespace