Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Runtime / InteropServices / MarshalDirectiveException.cs / 1 / MarshalDirectiveException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: MarshalDirectiveException ** ** Purpose: This exception is thrown when the marshaller encounters a signature ** that has an invalid MarshalAs CA for a given argument or is not ** supported. ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class MarshalDirectiveException : SystemException { public MarshalDirectiveException() : base(Environment.GetResourceString("Arg_MarshalDirectiveException")) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } public MarshalDirectiveException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } public MarshalDirectiveException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } protected MarshalDirectiveException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: MarshalDirectiveException ** ** Purpose: This exception is thrown when the marshaller encounters a signature ** that has an invalid MarshalAs CA for a given argument or is not ** supported. ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class MarshalDirectiveException : SystemException { public MarshalDirectiveException() : base(Environment.GetResourceString("Arg_MarshalDirectiveException")) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } public MarshalDirectiveException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } public MarshalDirectiveException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MARSHALDIRECTIVE); } protected MarshalDirectiveException(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
- DynamicQueryableWrapper.cs
- DataKey.cs
- Empty.cs
- GPStream.cs
- DataRowExtensions.cs
- DeferredRunTextReference.cs
- SqlMethods.cs
- LoadedOrUnloadedOperation.cs
- CompilationUtil.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- EventLogPermission.cs
- ListParaClient.cs
- GcHandle.cs
- EntityDataSourceContextCreatingEventArgs.cs
- FieldNameLookup.cs
- Double.cs
- COAUTHIDENTITY.cs
- ParameterModifier.cs
- HeaderCollection.cs
- DynamicDataExtensions.cs
- QueryConverter.cs
- SplashScreenNativeMethods.cs
- CollectionEditor.cs
- LayoutUtils.cs
- ButtonBaseAutomationPeer.cs
- HostProtectionPermission.cs
- TdsParser.cs
- PrtTicket_Base.cs
- XPathNodeHelper.cs
- XmlnsCache.cs
- FastEncoderWindow.cs
- MultiSelectRootGridEntry.cs
- UnaryOperationBinder.cs
- JoinGraph.cs
- RouteParser.cs
- ConnectorDragDropGlyph.cs
- MatrixAnimationUsingKeyFrames.cs
- StorageMappingFragment.cs
- WorkflowWebService.cs
- Point3D.cs
- PathFigure.cs
- ReachPrintTicketSerializer.cs
- ToolStripDropDownItem.cs
- Types.cs
- MinimizableAttributeTypeConverter.cs
- PolicyAssertionCollection.cs
- PromptBuilder.cs
- BuiltInExpr.cs
- ContainerControl.cs
- SiteMapDataSourceView.cs
- DataGridViewCheckBoxCell.cs
- ApplicationSettingsBase.cs
- InertiaTranslationBehavior.cs
- Run.cs
- OleDbPermission.cs
- SafeMarshalContext.cs
- UserControl.cs
- InvariantComparer.cs
- ToolboxDataAttribute.cs
- ReferenceCountedObject.cs
- TiffBitmapDecoder.cs
- PageCodeDomTreeGenerator.cs
- XamlPathDataSerializer.cs
- ControlBuilder.cs
- SqlDataAdapter.cs
- BoundColumn.cs
- EntityDataSourceValidationException.cs
- Model3D.cs
- XmlNullResolver.cs
- RsaSecurityToken.cs
- CalendarAutoFormat.cs
- DataGridViewCell.cs
- GeneratedContractType.cs
- Geometry.cs
- XmlSchemaType.cs
- NullReferenceException.cs
- LockCookie.cs
- DataObject.cs
- XmlAnyElementAttributes.cs
- ValueSerializerAttribute.cs
- ContentPosition.cs
- baseaxisquery.cs
- SystemBrushes.cs
- PrimarySelectionGlyph.cs
- ReadOnlyAttribute.cs
- Base64WriteStateInfo.cs
- XmlHierarchicalDataSourceView.cs
- QueryResponse.cs
- SslStream.cs
- XmlAttributeProperties.cs
- Condition.cs
- _AutoWebProxyScriptEngine.cs
- TimeManager.cs
- MsmqChannelListenerBase.cs
- FrameSecurityDescriptor.cs
- TextReader.cs
- SamlDoNotCacheCondition.cs
- BitSet.cs
- Queue.cs
- DTCTransactionManager.cs