Method ThrowInvalidContextType
ThrowInvalidContextType(string, ContextType, params ContextType[])
Throws an InvalidOperationException when the method called is not valid for the current ContextType.
protected void ThrowInvalidContextType(string methodName, ContextType actualContextType, params ContextType[] validContextTypes)
Parameters
methodName
stringThe name of the method.
actualContextType
ContextTypeThe actual ContextType.
validContextTypes
ContextType[]The valid ContextTypes.