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