Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / MarshalDirectiveException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- BitArray.cs
- RtfToXamlReader.cs
- XhtmlBasicLinkAdapter.cs
- CommandDevice.cs
- StylusButton.cs
- CommonObjectSecurity.cs
- HttpListenerPrefixCollection.cs
- SiblingIterators.cs
- XamlPathDataSerializer.cs
- FtpWebResponse.cs
- SystemColors.cs
- CompositeTypefaceMetrics.cs
- TextEditorParagraphs.cs
- AdRotatorDesigner.cs
- SmtpFailedRecipientException.cs
- RepeatInfo.cs
- WebPartUtil.cs
- cookie.cs
- DataGridViewAdvancedBorderStyle.cs
- ValueChangedEventManager.cs
- ConfigurationManagerInternal.cs
- SecurityDocument.cs
- FamilyTypeface.cs
- GeneralTransformGroup.cs
- AmbientValueAttribute.cs
- ToolBarOverflowPanel.cs
- EncryptedData.cs
- CommandID.cs
- HttpConfigurationContext.cs
- PathNode.cs
- DateTimeOffsetConverter.cs
- LocalsItemDescription.cs
- HtmlImageAdapter.cs
- ellipse.cs
- TableRow.cs
- CodeGenerator.cs
- DataServiceRequestException.cs
- ResourceReader.cs
- HtmlControl.cs
- DeobfuscatingStream.cs
- SplineKeyFrames.cs
- Variable.cs
- TreeNode.cs
- Serializer.cs
- RegexCharClass.cs
- DurableOperationAttribute.cs
- XmlBinaryReader.cs
- FlowPosition.cs
- DocumentReferenceCollection.cs
- PropertyEntry.cs
- ChannelServices.cs
- InkCanvasFeedbackAdorner.cs
- UnsafeNativeMethods.cs
- ValueTable.cs
- SystemIcmpV4Statistics.cs
- SqlDataSourceFilteringEventArgs.cs
- StringReader.cs
- ProfilePropertyNameValidator.cs
- WeakReferenceKey.cs
- QuadraticEase.cs
- Configuration.cs
- X509Extension.cs
- PreProcessInputEventArgs.cs
- MappedMetaModel.cs
- TextEndOfSegment.cs
- HtmlTitle.cs
- BinaryObjectInfo.cs
- RtType.cs
- SamlSecurityToken.cs
- DictionaryEditChange.cs
- Processor.cs
- DataBinder.cs
- DependencyObject.cs
- CellTreeNodeVisitors.cs
- CommandValueSerializer.cs
- ServiceProviders.cs
- XmlObjectSerializerReadContextComplex.cs
- HwndAppCommandInputProvider.cs
- Size3DValueSerializer.cs
- TypeBrowserDialog.cs
- AccessDataSourceView.cs
- CompilationUtil.cs
- ComplexObject.cs
- Content.cs
- ToolStripSplitStackLayout.cs
- OracleNumber.cs
- BindingBase.cs
- RequestQueue.cs
- _ListenerResponseStream.cs
- SignedPkcs7.cs
- DynamicPropertyReader.cs
- WebPartMovingEventArgs.cs
- SystemIPInterfaceProperties.cs
- OrderPreservingSpoolingTask.cs
- GlyphRunDrawing.cs
- SemanticResultKey.cs
- HiddenField.cs
- TraceFilter.cs
- ScriptReference.cs
- Cursor.cs