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
- DesignTimeXamlWriter.cs
- CodePageEncoding.cs
- FreezableCollection.cs
- PageVisual.cs
- MediaElementAutomationPeer.cs
- ByteKeyFrameCollection.cs
- DynamicActionMessageFilter.cs
- SQLInt16Storage.cs
- ListViewUpdateEventArgs.cs
- SelectionItemProviderWrapper.cs
- SeparatorAutomationPeer.cs
- BuildProviderUtils.cs
- OleDbWrapper.cs
- PersonalizationProvider.cs
- SqlClientMetaDataCollectionNames.cs
- EntityContainer.cs
- RegexRunnerFactory.cs
- ExpressionBindings.cs
- CommonObjectSecurity.cs
- BrushValueSerializer.cs
- IdentityNotMappedException.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- CreatingCookieEventArgs.cs
- ConfigurationSectionCollection.cs
- HierarchicalDataBoundControlAdapter.cs
- TabletDevice.cs
- CompilationPass2TaskInternal.cs
- ConfigurationStrings.cs
- CustomAttributeBuilder.cs
- BamlBinaryWriter.cs
- DesignerHost.cs
- StatusBarItemAutomationPeer.cs
- categoryentry.cs
- AdPostCacheSubstitution.cs
- TextTrailingCharacterEllipsis.cs
- XPathAxisIterator.cs
- CodeCommentStatementCollection.cs
- TdsRecordBufferSetter.cs
- HttpCachePolicyWrapper.cs
- DataColumn.cs
- HtmlButton.cs
- Selector.cs
- RegexWorker.cs
- WindowsBrush.cs
- LinearGradientBrush.cs
- WebPartMovingEventArgs.cs
- DataSourceControl.cs
- ChannelDispatcherBase.cs
- PaintEvent.cs
- SessionStateItemCollection.cs
- EllipticalNodeOperations.cs
- UriSection.cs
- TextTreeInsertElementUndoUnit.cs
- Configuration.cs
- Classification.cs
- TextViewSelectionProcessor.cs
- Geometry.cs
- AmbientValueAttribute.cs
- ColumnPropertiesGroup.cs
- NativeRecognizer.cs
- CommandConverter.cs
- SqlCacheDependency.cs
- ContextMarshalException.cs
- SparseMemoryStream.cs
- SystemTcpStatistics.cs
- HttpResponseHeader.cs
- _NestedSingleAsyncResult.cs
- Buffer.cs
- Accessible.cs
- XmlSchemaCollection.cs
- DateTimeConverter.cs
- SelectorItemAutomationPeer.cs
- SchemaImporterExtension.cs
- HandleCollector.cs
- StorageBasedPackageProperties.cs
- GlyphTypeface.cs
- CalendarDesigner.cs
- XmlEncodedRawTextWriter.cs
- WebPartZoneDesigner.cs
- DetailsViewDeletedEventArgs.cs
- DataTableReaderListener.cs
- SelfSignedCertificate.cs
- XmlProcessingInstruction.cs
- XmlSchemaAttribute.cs
- SecurityAccessDeniedException.cs
- PropertyEntry.cs
- SoundPlayer.cs
- TabControlAutomationPeer.cs
- EtwTrace.cs
- PermissionSetEnumerator.cs
- XmlAttributeCollection.cs
- WebPartDisplayMode.cs
- DataSourceXmlElementAttribute.cs
- XpsS0ValidatingLoader.cs
- Package.cs
- ConfigurationStrings.cs
- ThemeDictionaryExtension.cs
- DataGridViewColumnConverter.cs
- BlurBitmapEffect.cs
- Process.cs