Udostępnij za pośrednictwem


DataServiceContext.IgnoreMissingProperties Property

Gets or sets whether the properties read from the type must be mapped to properties on the client-side type.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public Property IgnoreMissingProperties As Boolean 
    Get 
    Set
'Usage
Dim instance As DataServiceContext 
Dim value As Boolean 

value = instance.IgnoreMissingProperties

instance.IgnoreMissingProperties = value
public bool IgnoreMissingProperties { get; set; }
public:
property bool IgnoreMissingProperties {
    bool get ();
    void set (bool value);
}
member IgnoreMissingProperties : bool with get, set
function get IgnoreMissingProperties () : boolean 
function set IgnoreMissingProperties (value : boolean)

Property Value

Type: System.Boolean
A Boolean value that indicates whether the properties read from the type must be mapped to properties on the client-side type.

Remarks

If true, materialization succeeds even if properties from the type cannot be mapped to properties of the client type. If false, the property mismatch raises an exception during object materialization.

See Also

Reference

DataServiceContext Class

System.Data.Services.Client Namespace