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
- Msmq4PoisonHandler.cs
- DropShadowBitmapEffect.cs
- DecoderExceptionFallback.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- LinkedResource.cs
- HttpAsyncResult.cs
- GridViewCommandEventArgs.cs
- DataColumnMappingCollection.cs
- XmlQueryType.cs
- EmbeddedMailObject.cs
- SubMenuStyle.cs
- documentsequencetextview.cs
- HelpProvider.cs
- COM2ICategorizePropertiesHandler.cs
- ReaderWriterLockWrapper.cs
- ProfileInfo.cs
- MemberCollection.cs
- COAUTHIDENTITY.cs
- MetadataArtifactLoader.cs
- HttpHandlerAction.cs
- LinqExpressionNormalizer.cs
- BufferedOutputStream.cs
- RequestCachePolicyConverter.cs
- VerticalAlignConverter.cs
- Span.cs
- SecurityListenerSettingsLifetimeManager.cs
- DateTimeOffset.cs
- GregorianCalendarHelper.cs
- PropertyGrid.cs
- ScriptMethodAttribute.cs
- LicenseContext.cs
- ButtonStandardAdapter.cs
- XDeferredAxisSource.cs
- basecomparevalidator.cs
- SqlDataReaderSmi.cs
- InvokeProviderWrapper.cs
- PropertyBuilder.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- TextRangeEditTables.cs
- DataGridColumnDropSeparator.cs
- SelectionItemPattern.cs
- DataServiceRequestException.cs
- ProfilePropertySettingsCollection.cs
- SerializationStore.cs
- ReadOnlyDictionary.cs
- DataControlFieldCollection.cs
- DocumentNUp.cs
- ChangeConflicts.cs
- TransactionInformation.cs
- basecomparevalidator.cs
- SmtpNetworkElement.cs
- DNS.cs
- CreateUserErrorEventArgs.cs
- DynamicDocumentPaginator.cs
- Span.cs
- UICuesEvent.cs
- SqlDataSourceCommandEventArgs.cs
- TypeDescriptorFilterService.cs
- coordinatorfactory.cs
- StrongName.cs
- Collection.cs
- BStrWrapper.cs
- FamilyCollection.cs
- RoutedEventConverter.cs
- UxThemeWrapper.cs
- InkPresenter.cs
- Section.cs
- XmlSchemaObjectCollection.cs
- RegexRunnerFactory.cs
- ByteStream.cs
- Predicate.cs
- PersonalizationStateQuery.cs
- FileChangesMonitor.cs
- RuntimeHandles.cs
- TableDetailsCollection.cs
- ProxyManager.cs
- JsonWriterDelegator.cs
- ComponentDispatcherThread.cs
- ObjectAnimationUsingKeyFrames.cs
- Base64Encoder.cs
- Int32AnimationBase.cs
- ConstrainedGroup.cs
- ExpressionStringBuilder.cs
- ToolBarTray.cs
- SecurityTokenProvider.cs
- WebPartManagerInternals.cs
- ResourceExpression.cs
- DispatcherOperation.cs
- COM2ComponentEditor.cs
- Processor.cs
- GestureRecognitionResult.cs
- SelectionProviderWrapper.cs
- AlphabeticalEnumConverter.cs
- ComponentCommands.cs
- XmlArrayItemAttributes.cs
- SystemFonts.cs
- Vector3DAnimationUsingKeyFrames.cs
- newinstructionaction.cs
- DesignerSerializationVisibilityAttribute.cs
- XmlSubtreeReader.cs