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
- ReadOnlyDataSourceView.cs
- VarRefManager.cs
- UpdateCommand.cs
- FromRequest.cs
- ScriptResourceAttribute.cs
- peersecurityelement.cs
- FileDialog_Vista.cs
- ResolveNameEventArgs.cs
- MarkedHighlightComponent.cs
- ObjectComplexPropertyMapping.cs
- XmlSchemaSimpleTypeUnion.cs
- HtmlLink.cs
- FtpRequestCacheValidator.cs
- HtmlElementCollection.cs
- CmsInterop.cs
- SynchronizingStream.cs
- ExpandedWrapper.cs
- DateTimeUtil.cs
- PrintingPermission.cs
- Timer.cs
- WebBrowserProgressChangedEventHandler.cs
- ShimAsPublicXamlType.cs
- HttpWebRequest.cs
- X509Logo.cs
- HuffModule.cs
- ByteStream.cs
- TextEndOfParagraph.cs
- SerializationStore.cs
- OpCellTreeNode.cs
- safex509handles.cs
- GridEntry.cs
- SelectedGridItemChangedEvent.cs
- BindingContext.cs
- DesignBindingEditor.cs
- XmlElement.cs
- ActivationArguments.cs
- XhtmlTextWriter.cs
- TypedAsyncResult.cs
- ImageAutomationPeer.cs
- CodeMemberEvent.cs
- CompositeCollection.cs
- SqlStatistics.cs
- PropertyManager.cs
- SelectedPathEditor.cs
- LinqDataSourceContextEventArgs.cs
- AliasExpr.cs
- HttpCookieCollection.cs
- DataServiceKeyAttribute.cs
- dataSvcMapFileLoader.cs
- AuthStoreRoleProvider.cs
- HttpWebRequest.cs
- GcHandle.cs
- AttributeQuery.cs
- _HelperAsyncResults.cs
- SaveFileDialogDesigner.cs
- GlyphShapingProperties.cs
- TCPListener.cs
- StringStorage.cs
- ClusterSafeNativeMethods.cs
- VisualStyleTypesAndProperties.cs
- FontFamilyConverter.cs
- TransportSecurityProtocolFactory.cs
- DistributedTransactionPermission.cs
- ListViewGroup.cs
- InternalTransaction.cs
- httpstaticobjectscollection.cs
- PreloadedPackages.cs
- WebException.cs
- EmptyStringExpandableObjectConverter.cs
- ConnectionPoint.cs
- CodeChecksumPragma.cs
- DrawingContextDrawingContextWalker.cs
- HostingEnvironmentSection.cs
- WebPartMenuStyle.cs
- GenericTypeParameterConverter.cs
- InputLanguageEventArgs.cs
- LocalizeDesigner.cs
- CqlLexerHelpers.cs
- ElapsedEventArgs.cs
- TextViewElement.cs
- RectangleF.cs
- TypeDependencyAttribute.cs
- ExpandSegment.cs
- ProfileBuildProvider.cs
- HwndKeyboardInputProvider.cs
- DropAnimation.xaml.cs
- EditBehavior.cs
- TextParaClient.cs
- WebPartTransformerCollection.cs
- DataGridPagerStyle.cs
- FileClassifier.cs
- SafeMILHandle.cs
- ColumnCollection.cs
- CorrelationScope.cs
- WmlValidatorAdapter.cs
- OrderedDictionary.cs
- MobileComponentEditorPage.cs
- RightsManagementPermission.cs
- BamlTreeMap.cs
- Empty.cs