LinqDataSourceView.ValidateContextType(Type, Boolean) Method
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.
Checks whether the data context class derives from DataContext.
protected:
virtual void ValidateContextType(Type ^ contextType, bool selecting);
protected virtual void ValidateContextType (Type contextType, bool selecting);
abstract member ValidateContextType : Type * bool -> unit
override this.ValidateContextType : Type * bool -> unit
Protected Overridable Sub ValidateContextType (contextType As Type, selecting As Boolean)
Parameters
- contextType
- Type
The type of the data context class to validate.
- selecting
- Boolean
Specifies whether the method has been called when a select operation starts.
Exceptions
An insert, update, or delete operation is being performed and the data context class does not derive from DataContext.
Remarks
The class that is specified in the ContextTypeName property must derive from the DataContext class in order to enable automatic insert, update, and delete operations.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om