Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- IndicFontClient.cs
- PerfCounters.cs
- DependencyStoreSurrogate.cs
- TcpTransportBindingElement.cs
- MatrixIndependentAnimationStorage.cs
- BitFlagsGenerator.cs
- ParallelTimeline.cs
- EventData.cs
- StandardTransformFactory.cs
- XmlNamedNodeMap.cs
- SqlClientFactory.cs
- GraphicsContext.cs
- DataRelationCollection.cs
- Border.cs
- NamedPipeProcessProtocolHandler.cs
- ListView.cs
- SrgsSubset.cs
- DesignerVerbCollection.cs
- IItemProperties.cs
- TreeNodeStyleCollection.cs
- AtlasWeb.Designer.cs
- ReflectionUtil.cs
- OrderingQueryOperator.cs
- CodeArrayCreateExpression.cs
- ErrorEventArgs.cs
- SystemDiagnosticsSection.cs
- ParserStack.cs
- PropertyValue.cs
- MetricEntry.cs
- DataSourceView.cs
- SqlUDTStorage.cs
- ConfigXmlComment.cs
- InvalidEnumArgumentException.cs
- ConfigurationLocation.cs
- RelatedEnd.cs
- LazyTextWriterCreator.cs
- ProfileParameter.cs
- SqlStream.cs
- FilterQueryOptionExpression.cs
- ToolStripManager.cs
- Models.cs
- ObjectItemCollection.cs
- SchemaSetCompiler.cs
- Mappings.cs
- Blend.cs
- sortedlist.cs
- DbConnectionHelper.cs
- OutOfProcStateClientManager.cs
- BuildProvidersCompiler.cs
- TextContainerChangedEventArgs.cs
- OdbcParameter.cs
- DiscreteKeyFrames.cs
- EarlyBoundInfo.cs
- SchemaTypeEmitter.cs
- TextParagraph.cs
- SignedXmlDebugLog.cs
- CachedBitmap.cs
- SqlNodeAnnotation.cs
- NativeMethods.cs
- Deflater.cs
- ValidationSummary.cs
- FileInfo.cs
- XmlChildNodes.cs
- SymmetricCryptoHandle.cs
- XmlSchemaExternal.cs
- ListDataBindEventArgs.cs
- MailDefinition.cs
- SecurityTokenValidationException.cs
- XmlSerializer.cs
- DesignerSerializationOptionsAttribute.cs
- TextTreeText.cs
- UpDownBaseDesigner.cs
- XmlWellformedWriter.cs
- RegexCompilationInfo.cs
- RIPEMD160Managed.cs
- ProvidePropertyAttribute.cs
- TimeoutValidationAttribute.cs
- KeyBinding.cs
- TextSegment.cs
- DocumentGridContextMenu.cs
- TextEditorContextMenu.cs
- MetadataWorkspace.cs
- OrthographicCamera.cs
- MutexSecurity.cs
- SqlConnection.cs
- SqlInternalConnectionTds.cs
- BridgeDataRecord.cs
- DataGridRow.cs
- ListViewSortEventArgs.cs
- ViewKeyConstraint.cs
- XmlSchemaInferenceException.cs
- mediapermission.cs
- ListItemCollection.cs
- UpdateCompiler.cs
- Error.cs
- UnmanagedHandle.cs
- OperatorExpressions.cs
- MemberPathMap.cs
- WebEncodingValidatorAttribute.cs
- BatchStream.cs