Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Runtime / Serialization / StreamingContext.cs / 1 / StreamingContext.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** ValueType: StreamingContext ** ** ** Purpose: A value type indicating the source or destination of our streaming. ** ** ===========================================================*/ namespace System.Runtime.Serialization { using System.Runtime.Remoting; using System; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public struct StreamingContext { internal Object m_additionalContext; internal StreamingContextStates m_state; public StreamingContext(StreamingContextStates state) : this (state, null) { } public StreamingContext(StreamingContextStates state, Object additional) { m_state = state; m_additionalContext = additional; } public Object Context { get { return m_additionalContext; } } public override bool Equals(Object obj) { if (!(obj is StreamingContext)) { return false; } if (((StreamingContext)obj).m_additionalContext == m_additionalContext && ((StreamingContext)obj).m_state == m_state) { return true; } return false; } public override int GetHashCode() { return (int)m_state; } public StreamingContextStates State { get { return m_state; } } } // ********************************************************* // Keep these in sync with the version in vm\runtimehandles.h // ********************************************************* [Serializable, Flags] [System.Runtime.InteropServices.ComVisible(true)] public enum StreamingContextStates { CrossProcess=0x01, CrossMachine=0x02, File =0x04, Persistence =0x08, Remoting =0x10, Other =0x20, Clone =0x40, CrossAppDomain =0x80, All =0xFF, } } // 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
- StateManager.cs
- SecUtil.cs
- RawMouseInputReport.cs
- SizeAnimationClockResource.cs
- PerformanceCounterPermissionEntryCollection.cs
- FunctionQuery.cs
- KeyGestureValueSerializer.cs
- WmlImageAdapter.cs
- DesigntimeLicenseContext.cs
- ProfileGroupSettings.cs
- ToolStripSeparator.cs
- GridPatternIdentifiers.cs
- MembershipPasswordException.cs
- OleDbParameterCollection.cs
- PropertyIDSet.cs
- SiteMapNodeItem.cs
- SqlBooleanizer.cs
- RunInstallerAttribute.cs
- FileDialogPermission.cs
- RouteItem.cs
- ConfigurationException.cs
- NativeMethods.cs
- OleDbRowUpdatingEvent.cs
- FeatureManager.cs
- ViewBase.cs
- OperationAbortedException.cs
- WebPartZoneAutoFormat.cs
- ObjectListCommandEventArgs.cs
- DrawingImage.cs
- ServiceNameCollection.cs
- AxWrapperGen.cs
- ColorMap.cs
- EntityProviderServices.cs
- BooleanSwitch.cs
- OracleSqlParser.cs
- LogStore.cs
- FocusManager.cs
- StorageRoot.cs
- DataGridViewLinkColumn.cs
- Constants.cs
- DataStreamFromComStream.cs
- ImmutablePropertyDescriptorGridEntry.cs
- OptimizedTemplateContent.cs
- TTSVoice.cs
- XmlEventCache.cs
- PropertyOverridesDialog.cs
- NotImplementedException.cs
- RootBrowserWindowProxy.cs
- ViewStateException.cs
- EntityDataSourceContainerNameItem.cs
- EditorPart.cs
- UpdateException.cs
- DataGridViewRowCancelEventArgs.cs
- ModelPerspective.cs
- VisualTreeUtils.cs
- StorageScalarPropertyMapping.cs
- FontDriver.cs
- InternalConfigSettingsFactory.cs
- XPathPatternParser.cs
- CannotUnloadAppDomainException.cs
- PaginationProgressEventArgs.cs
- TextParagraphCache.cs
- WindowsFormsHost.cs
- ProcessingInstructionAction.cs
- IsolatedStorageFilePermission.cs
- LookupBindingPropertiesAttribute.cs
- Native.cs
- Transform.cs
- TextBox.cs
- QilExpression.cs
- DebugView.cs
- SectionVisual.cs
- ProfileService.cs
- SymbolPair.cs
- ChangePasswordAutoFormat.cs
- ConfigXmlWhitespace.cs
- WindowsServiceElement.cs
- Mouse.cs
- RuntimeComponentFilter.cs
- UndirectedGraph.cs
- CachedTypeface.cs
- XmlSchemaChoice.cs
- DrawingContextWalker.cs
- UserValidatedEventArgs.cs
- RectValueSerializer.cs
- InternalException.cs
- HandlerBase.cs
- DateTimeAutomationPeer.cs
- KerberosRequestorSecurityToken.cs
- MemoryMappedViewStream.cs
- IsolatedStorageException.cs
- PeerName.cs
- Model3D.cs
- ArrayHelper.cs
- SerializationException.cs
- SharedStatics.cs
- FrameworkElement.cs
- StrongName.cs
- MediaContext.cs
- BrowserCapabilitiesFactoryBase.cs