System.Web.Configuration.WebConfigurationManager.SuppressAppReload C# (CSharp) Method

SuppressAppReload() static private method

static private SuppressAppReload ( bool newValue ) : bool
newValue bool
return bool
		internal static bool SuppressAppReload (bool newValue)
		{
			bool ret;
			
			lock (suppressAppReloadLock) {
				ret = suppressAppReload;
				suppressAppReload = newValue;
			}

			return ret;
		}
		

Usage Example

Example #1
0
        public virtual Stream OpenStreamForWrite(string streamName, string templateStreamName, ref object writeContext)
        {
            if (!IsAboveApplication(streamName))
            {
                WebConfigurationManager.SuppressAppReload(true);
            }

            return(new FileStream(streamName, FileMode.Create, FileAccess.Write));
        }
All Usage Examples Of System.Web.Configuration.WebConfigurationManager::SuppressAppReload