Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / Hosting / ContextBase.cs / 1 / ContextBase.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Hosting { using System.Web; using System.Web.Configuration; using System.Runtime.Remoting.Messaging; using System.Security.Permissions; internal class ContextBase { internal static Object Current { get { return CallContext.HostContext; } [SecurityPermission(SecurityAction.Demand, Unrestricted = true)] set { CallContext.HostContext = value; } } // static methods internal static Object SwitchContext(Object newContext) { Object oldContext = CallContext.HostContext; if (oldContext != newContext) CallContext.HostContext = newContext; return oldContext; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GeometryGroup.cs
- SvcMapFileLoader.cs
- UnauthorizedWebPart.cs
- RequiredAttributeAttribute.cs
- Opcode.cs
- DateTimeParse.cs
- Geometry3D.cs
- XmlNamedNodeMap.cs
- AssociatedControlConverter.cs
- TabControlDesigner.cs
- CodeSnippetTypeMember.cs
- EventLogPermission.cs
- StateDesigner.LayoutSelectionGlyph.cs
- StaticResourceExtension.cs
- ConfigXmlAttribute.cs
- OdbcTransaction.cs
- Lasso.cs
- ReadOnlyDictionary.cs
- Utils.cs
- GridSplitter.cs
- CompositeFontParser.cs
- StyleXamlTreeBuilder.cs
- XAMLParseException.cs
- ToolStripMenuItemDesigner.cs
- List.cs
- Volatile.cs
- ShaperBuffers.cs
- TransformerInfoCollection.cs
- DataGridViewComboBoxCell.cs
- VectorAnimation.cs
- WebBrowserNavigatingEventHandler.cs
- namescope.cs
- IteratorDescriptor.cs
- ObjectStateEntry.cs
- ConstructorArgumentAttribute.cs
- TransportConfigurationTypeElementCollection.cs
- HttpHandlerAction.cs
- UnitySerializationHolder.cs
- XamlToRtfParser.cs
- Int32Collection.cs
- NumberSubstitution.cs
- TimelineCollection.cs
- documentsequencetextcontainer.cs
- CompressEmulationStream.cs
- AssemblySettingAttributes.cs
- SelectionPattern.cs
- TextTrailingCharacterEllipsis.cs
- SessionIDManager.cs
- Stylesheet.cs
- FrameworkElementFactory.cs
- SqlConnectionFactory.cs
- TokenBasedSet.cs
- ReferentialConstraintRoleElement.cs
- DisplayMemberTemplateSelector.cs
- DbConnectionClosed.cs
- XpsDocument.cs
- ExpressionNormalizer.cs
- SmiMetaDataProperty.cs
- AdornerLayer.cs
- StylusButtonCollection.cs
- DBParameter.cs
- DataViewManagerListItemTypeDescriptor.cs
- SrgsOneOf.cs
- IntSecurity.cs
- ProfilePropertySettingsCollection.cs
- EntryIndex.cs
- WebPartVerbsEventArgs.cs
- XmlCharCheckingReader.cs
- XmlIlTypeHelper.cs
- SafeUserTokenHandle.cs
- XmlTextReaderImpl.cs
- ServiceProviders.cs
- RegionIterator.cs
- TextParagraph.cs
- TransactedBatchingBehavior.cs
- ListControl.cs
- SigningCredentials.cs
- DeleteHelper.cs
- GPStream.cs
- IdentityManager.cs
- IItemContainerGenerator.cs
- XmlAnyElementAttributes.cs
- SettingsContext.cs
- TextWriterEngine.cs
- WriteTimeStream.cs
- TimeSpanStorage.cs
- DataRow.cs
- BindingSource.cs
- ActivationArguments.cs
- SerialPort.cs
- AssociationType.cs
- StrongNameMembershipCondition.cs
- TransactedBatchingBehavior.cs
- PingReply.cs
- MatrixConverter.cs
- Monitor.cs
- TableCellAutomationPeer.cs
- ExpandedProjectionNode.cs
- EllipticalNodeOperations.cs
- XpsManager.cs