Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / ContextMarshalException.cs / 1305376 / ContextMarshalException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: ContextMarshalException ** ** ** Purpose: Exception class for attempting to pass an instance through a context ** boundary, when the formal type and the instance's marshal style are ** incompatible or cannot be marshaled. ** ** This is thrown by the VM when attempts to marshal the exception ** object at the AppDomain transition boundary fails. =============================================================================*/ namespace System { using System.Runtime.InteropServices; using System.Runtime.Remoting; using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class ContextMarshalException : SystemException { public ContextMarshalException() : base(Environment.GetResourceString("Arg_ContextMarshalException")) { SetErrorCode(__HResults.COR_E_CONTEXTMARSHAL); } public ContextMarshalException(String message) : base(message) { SetErrorCode(__HResults.COR_E_CONTEXTMARSHAL); } public ContextMarshalException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_CONTEXTMARSHAL); } [System.Security.SecuritySafeCritical] // auto-generated protected ContextMarshalException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectItemCollectionAssemblyCacheEntry.cs
- CookieHandler.cs
- DispatcherHooks.cs
- DataSvcMapFile.cs
- ResourcesChangeInfo.cs
- RepeatBehavior.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- TimeSpanValidatorAttribute.cs
- WebPartVerb.cs
- XmlSchemaSimpleTypeList.cs
- WebPartEditVerb.cs
- TextModifierScope.cs
- Rectangle.cs
- RegexStringValidatorAttribute.cs
- SpeechDetectedEventArgs.cs
- SatelliteContractVersionAttribute.cs
- MonitoringDescriptionAttribute.cs
- NetTcpBinding.cs
- HScrollProperties.cs
- CodeMemberEvent.cs
- Brush.cs
- ValidationResult.cs
- TypeNameConverter.cs
- TypeFieldSchema.cs
- SqlBooleanMismatchVisitor.cs
- HttpEncoderUtility.cs
- CheckedListBox.cs
- MemoryMappedFile.cs
- RTLAwareMessageBox.cs
- WebPartDisplayMode.cs
- MetadataArtifactLoaderComposite.cs
- EventNotify.cs
- TreeViewHitTestInfo.cs
- TextEditorCharacters.cs
- TableLayoutCellPaintEventArgs.cs
- TextTrailingCharacterEllipsis.cs
- __TransparentProxy.cs
- AttachedPropertyMethodSelector.cs
- ClientRuntimeConfig.cs
- InlineUIContainer.cs
- MaterializeFromAtom.cs
- XmlNodeReader.cs
- RowTypePropertyElement.cs
- ContentControl.cs
- ExpressionSelection.cs
- BindingGraph.cs
- ExceptionCollection.cs
- FileLoadException.cs
- ToolStripDropTargetManager.cs
- ExtenderProviderService.cs
- TemplateColumn.cs
- SearchForVirtualItemEventArgs.cs
- ChannelServices.cs
- PropertyGridEditorPart.cs
- Pointer.cs
- TransactionProtocolConverter.cs
- OLEDB_Util.cs
- StretchValidation.cs
- XmlNodeReader.cs
- CompressionTransform.cs
- ValidationHelper.cs
- ListBindingHelper.cs
- EntityDataSourceStatementEditorForm.cs
- AdCreatedEventArgs.cs
- PackagePartCollection.cs
- WebPartAddingEventArgs.cs
- SortKey.cs
- ToolStripMenuItem.cs
- SwitchElementsCollection.cs
- _NTAuthentication.cs
- ActivityXamlServices.cs
- CacheForPrimitiveTypes.cs
- PageSettings.cs
- FieldAccessException.cs
- HighContrastHelper.cs
- FrameworkRichTextComposition.cs
- ThreadInterruptedException.cs
- TcpProcessProtocolHandler.cs
- LinkButton.cs
- AnnotationResource.cs
- wgx_sdk_version.cs
- CompatibleComparer.cs
- ImageBrush.cs
- EncodingDataItem.cs
- StringValidatorAttribute.cs
- BehaviorService.cs
- HiddenFieldPageStatePersister.cs
- ChameleonKey.cs
- ListViewUpdatedEventArgs.cs
- MobileControlPersister.cs
- PageBuildProvider.cs
- TextProperties.cs
- Viewport3DVisual.cs
- BaseProcessor.cs
- BitmapEffectInput.cs
- ToolStripDropDownClosedEventArgs.cs
- SafeRightsManagementQueryHandle.cs
- RegionInfo.cs
- WindowsTreeView.cs
- WorkflowElementDialogWindow.xaml.cs