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
methodNamestringThe name of the method.
actualContextTypeContextTypeThe actual ContextType.
validContextTypesContextType[]The valid ContextTypes.