Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SocketException.cs
- InkCanvasAutomationPeer.cs
- DataBindingExpressionBuilder.cs
- AutomationIdentifier.cs
- ExceptionUtil.cs
- HtmlPhoneCallAdapter.cs
- StringUtil.cs
- DataGridRow.cs
- _ChunkParse.cs
- ChannelSettingsElement.cs
- UIntPtr.cs
- SqlTypesSchemaImporter.cs
- TypeConverterHelper.cs
- TypeDefinition.cs
- DbConnectionPoolOptions.cs
- sqlpipe.cs
- DriveInfo.cs
- peernodeimplementation.cs
- DesignerForm.cs
- RoutedCommand.cs
- SourceElementsCollection.cs
- InvokeMethodActivityDesigner.cs
- ProfileParameter.cs
- ProbeDuplex11AsyncResult.cs
- ImageAnimator.cs
- TriState.cs
- StyleHelper.cs
- EnvelopedSignatureTransform.cs
- MarkerProperties.cs
- ForceCopyBuildProvider.cs
- ProviderManager.cs
- ButtonChrome.cs
- ChildChangedEventArgs.cs
- DataError.cs
- SessionPageStatePersister.cs
- ListItemConverter.cs
- MailWebEventProvider.cs
- CursorConverter.cs
- DrawListViewSubItemEventArgs.cs
- ZipArchive.cs
- DetailsViewRow.cs
- MetaTableHelper.cs
- SourceLineInfo.cs
- ReversePositionQuery.cs
- FontFamily.cs
- WindowsListView.cs
- FontNamesConverter.cs
- ViewCellRelation.cs
- RegularExpressionValidator.cs
- DataRelationCollection.cs
- CriticalFinalizerObject.cs
- ValidationEventArgs.cs
- SudsCommon.cs
- XmlSignificantWhitespace.cs
- PointKeyFrameCollection.cs
- TypographyProperties.cs
- SerializationException.cs
- AssemblyUtil.cs
- EventMappingSettingsCollection.cs
- RuntimeWrappedException.cs
- XPathScanner.cs
- SmiEventSink_Default.cs
- PathSegmentCollection.cs
- QueryAsyncResult.cs
- BaseCAMarshaler.cs
- QilSortKey.cs
- InstanceCollisionException.cs
- Translator.cs
- TypeDelegator.cs
- CachedFontFamily.cs
- DispatcherProcessingDisabled.cs
- SqlDataSourceFilteringEventArgs.cs
- ResolveCriteriaCD1.cs
- NTAccount.cs
- HtmlTableRowCollection.cs
- RuntimeResourceSet.cs
- PixelFormats.cs
- SizeLimitedCache.cs
- StyleTypedPropertyAttribute.cs
- HtmlTableCellCollection.cs
- ClientClassGenerator.cs
- OracleBoolean.cs
- DefaultTextStore.cs
- MSAAEventDispatcher.cs
- KeyedCollection.cs
- BooleanFunctions.cs
- HashHelper.cs
- ClientSettingsStore.cs
- Intellisense.cs
- DirectionalLight.cs
- PropertyInfoSet.cs
- DataGridViewColumnCollection.cs
- BrowserTree.cs
- WebBaseEventKeyComparer.cs
- SqlGatherConsumedAliases.cs
- DataGridViewSelectedRowCollection.cs
- IPAddress.cs
- SafeSecurityHelper.cs
- HtmlFormWrapper.cs
- ContentPropertyAttribute.cs