ValidationKinds Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validation kinds used in ODataMessageReaderSettings and ODataMessageWriterSettings.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum ValidationKinds
[<System.Flags>]
type ValidationKinds =
Public Enum ValidationKinds
- Inheritance
-
ValidationKinds
- Attributes
Fields
Name | Value | Description |
---|---|---|
All | -1 | Enable all validations. |
None | 0 | No validations. |
ThrowOnDuplicatePropertyNames | 1 | Disallow duplicate properties in ODataResource (i.e., properties with the same name). If no duplication can be guaranteed, this flag can be turned off for better performance. |
ThrowOnUndeclaredPropertyForNonOpenType | 2 | Do not support for undeclared property for non open type. |
ThrowIfTypeConflictsWithMetadata | 4 | Validates that the type in input must exactly match the model. If the input can be guaranteed to be valid, this flag can be turned off for better performance. |