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
- UnsafeNativeMethods.cs
- _ContextAwareResult.cs
- ProbeMatchesMessage11.cs
- Margins.cs
- SQLMembershipProvider.cs
- ServerValidateEventArgs.cs
- ClientConfigurationHost.cs
- ToolStripScrollButton.cs
- ItemsChangedEventArgs.cs
- OracleConnectionFactory.cs
- CultureMapper.cs
- OleDbConnection.cs
- UpdateCommandGenerator.cs
- FormatConvertedBitmap.cs
- DrawingGroupDrawingContext.cs
- PasswordRecovery.cs
- TaskbarItemInfo.cs
- ToolStripContentPanel.cs
- ProcessInfo.cs
- EventMappingSettings.cs
- WmiPutTraceRecord.cs
- BamlLocalizabilityResolver.cs
- SelectionChangedEventArgs.cs
- httpapplicationstate.cs
- SRef.cs
- OleDbRowUpdatingEvent.cs
- FileDetails.cs
- AliasExpr.cs
- HtmlTableRowCollection.cs
- CodeExpressionCollection.cs
- KerberosSecurityTokenAuthenticator.cs
- SqlFlattener.cs
- WindowsAuthenticationEventArgs.cs
- RegexWriter.cs
- SiteIdentityPermission.cs
- SqlConnectionStringBuilder.cs
- VBIdentifierDesigner.xaml.cs
- XmlSerializerAssemblyAttribute.cs
- PrintPreviewControl.cs
- SessionStateSection.cs
- ToolboxControl.cs
- InternalControlCollection.cs
- CodeMemberEvent.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- AndCondition.cs
- BlurBitmapEffect.cs
- BitmapInitialize.cs
- _BufferOffsetSize.cs
- OraclePermission.cs
- Item.cs
- EventsTab.cs
- DataGridHyperlinkColumn.cs
- QueryResponse.cs
- ZeroOpNode.cs
- DtcInterfaces.cs
- EnumUnknown.cs
- SqlAliasesReferenced.cs
- TimeoutException.cs
- BamlLocalizationDictionary.cs
- HttpNamespaceReservationInstallComponent.cs
- Rectangle.cs
- TimeSpanConverter.cs
- SubqueryRules.cs
- EntityContainerAssociationSet.cs
- FloaterBaseParagraph.cs
- PathNode.cs
- ProfileSettings.cs
- CollectionViewGroupInternal.cs
- AsyncSerializedWorker.cs
- CodeGotoStatement.cs
- IgnoreSectionHandler.cs
- ActivityTypeDesigner.xaml.cs
- DbMetaDataColumnNames.cs
- HierarchicalDataTemplate.cs
- TextDecorationLocationValidation.cs
- TraceFilter.cs
- SystemResourceKey.cs
- BStrWrapper.cs
- _OSSOCK.cs
- UpdateRecord.cs
- FontFamilyConverter.cs
- WithParamAction.cs
- FixedDocumentSequencePaginator.cs
- RegexStringValidator.cs
- EnumMember.cs
- ProtocolElement.cs
- InputQueue.cs
- TreeNodeSelectionProcessor.cs
- DataGridItemCollection.cs
- Decorator.cs
- Root.cs
- StateBag.cs
- ConsoleKeyInfo.cs
- ObjectSecurity.cs
- HtmlFormParameterReader.cs
- ResourceType.cs
- BinHexDecoder.cs
- ConfigXmlDocument.cs
- EncoderBestFitFallback.cs
- EventSetterHandlerConverter.cs