Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TypeUtils.cs
- QuerySettings.cs
- DashStyle.cs
- StoryFragments.cs
- System.Data_BID.cs
- CodePageEncoding.cs
- HttpPostedFile.cs
- WebReferencesBuildProvider.cs
- MediaPlayer.cs
- CachedPathData.cs
- EnumType.cs
- HttpUnhandledOperationInvoker.cs
- SecurityRuntime.cs
- UnaryNode.cs
- PTManager.cs
- JulianCalendar.cs
- DesignTimeParseData.cs
- Command.cs
- ResourceDefaultValueAttribute.cs
- ObfuscationAttribute.cs
- Graph.cs
- NullableDoubleMinMaxAggregationOperator.cs
- BitmapMetadata.cs
- ComboBox.cs
- SqlBulkCopy.cs
- HandlerBase.cs
- FastPropertyAccessor.cs
- NavigatorOutput.cs
- MaskedTextProvider.cs
- CallbackValidator.cs
- GregorianCalendar.cs
- FlowPosition.cs
- DocumentOrderComparer.cs
- WebPartTracker.cs
- BatchParser.cs
- TdsValueSetter.cs
- WsatEtwTraceListener.cs
- PrintDialog.cs
- SqlEnums.cs
- WSDualHttpBindingCollectionElement.cs
- COSERVERINFO.cs
- __Error.cs
- HtmlGenericControl.cs
- DetailsViewCommandEventArgs.cs
- DataGridViewCheckBoxColumn.cs
- MenuItem.cs
- PrivateFontCollection.cs
- JapaneseCalendar.cs
- CollectionViewGroupRoot.cs
- RuleSettingsCollection.cs
- ProxyElement.cs
- InteropBitmapSource.cs
- SystemIcmpV6Statistics.cs
- XmlNavigatorFilter.cs
- XamlWriter.cs
- NodeLabelEditEvent.cs
- OleDbDataReader.cs
- nulltextnavigator.cs
- ExpressionBuilder.cs
- DiscoveryReference.cs
- XmlSchemaAttributeGroupRef.cs
- HostedTransportConfigurationManager.cs
- TableRow.cs
- InternalControlCollection.cs
- SoapServerProtocol.cs
- ILGen.cs
- CacheRequest.cs
- DefaultValueMapping.cs
- EventProviderTraceListener.cs
- SqlFacetAttribute.cs
- TypeLoader.cs
- TextElementEnumerator.cs
- ObjectComplexPropertyMapping.cs
- BindingsCollection.cs
- SpeechUI.cs
- RepeaterItemCollection.cs
- ProgressBarHighlightConverter.cs
- Padding.cs
- AnnotationComponentChooser.cs
- ListViewCancelEventArgs.cs
- PlatformCulture.cs
- DataControlFieldHeaderCell.cs
- TextMetrics.cs
- DataGridTablesFactory.cs
- _ListenerRequestStream.cs
- StreamReader.cs
- AggregationMinMaxHelpers.cs
- DataGridCommandEventArgs.cs
- ToolboxItemCollection.cs
- ZipIOModeEnforcingStream.cs
- UriTemplatePathSegment.cs
- BitmapMetadataEnumerator.cs
- HttpModulesSection.cs
- DataGridViewDataConnection.cs
- DbConnectionOptions.cs
- Triangle.cs
- InkCanvasAutomationPeer.cs
- DocumentOrderComparer.cs
- PermissionRequestEvidence.cs
- D3DImage.cs