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
- StringFunctions.cs
- updatecommandorderer.cs
- UriWriter.cs
- ImplicitInputBrush.cs
- CaseExpr.cs
- AssemblyBuilder.cs
- IntSecurity.cs
- OleDbConnectionFactory.cs
- ObjectHandle.cs
- LayoutExceptionEventArgs.cs
- DocumentApplicationJournalEntry.cs
- Setter.cs
- DeclarativeCatalogPart.cs
- UnsafeNativeMethods.cs
- DateTimeStorage.cs
- ObjectDataSourceStatusEventArgs.cs
- LogLogRecordEnumerator.cs
- MediaElementAutomationPeer.cs
- TracedNativeMethods.cs
- BoundColumn.cs
- XmlSchemaCollection.cs
- Dispatcher.cs
- Executor.cs
- ItemTypeToolStripMenuItem.cs
- BitmapPalette.cs
- TagNameToTypeMapper.cs
- OleDbSchemaGuid.cs
- GenericAuthenticationEventArgs.cs
- DataBoundLiteralControl.cs
- UnsafeNativeMethods.cs
- ExpressionBindings.cs
- WindowsRichEdit.cs
- DirtyTextRange.cs
- TextEditorCopyPaste.cs
- ImportContext.cs
- QueryCreatedEventArgs.cs
- TransformedBitmap.cs
- SiteMapPathDesigner.cs
- WindowsGraphics2.cs
- DeploymentExceptionMapper.cs
- RestClientProxyHandler.cs
- SqlParameterCollection.cs
- CFGGrammar.cs
- StringUtil.cs
- DocumentPageTextView.cs
- Bold.cs
- DataServiceHostFactory.cs
- TranslateTransform3D.cs
- ProtectedConfiguration.cs
- Process.cs
- TextDecorationCollection.cs
- oledbmetadatacolumnnames.cs
- XPathNodeInfoAtom.cs
- ClientProxyGenerator.cs
- SharedDp.cs
- ParseChildrenAsPropertiesAttribute.cs
- ProviderConnectionPointCollection.cs
- MULTI_QI.cs
- ADMembershipProvider.cs
- Char.cs
- ColorConverter.cs
- Accessible.cs
- _AutoWebProxyScriptHelper.cs
- ButtonStandardAdapter.cs
- ConditionalAttribute.cs
- CancellationState.cs
- ContractInstanceProvider.cs
- ExceptQueryOperator.cs
- XmlSchemaDatatype.cs
- EntityKeyElement.cs
- LinqDataSourceUpdateEventArgs.cs
- LogFlushAsyncResult.cs
- ProfileService.cs
- ByteArrayHelperWithString.cs
- CodeObject.cs
- TrustLevelCollection.cs
- TileBrush.cs
- IgnoreSectionHandler.cs
- HebrewNumber.cs
- SharedConnectionWorkflowTransactionService.cs
- FilteredDataSetHelper.cs
- UInt16Converter.cs
- ModelUtilities.cs
- PropertyPushdownHelper.cs
- CachedTypeface.cs
- Window.cs
- NodeFunctions.cs
- CultureInfoConverter.cs
- DataTableReaderListener.cs
- UInt64Converter.cs
- GroupPartitionExpr.cs
- PartitionResolver.cs
- PlaceHolder.cs
- RectAnimationBase.cs
- ScriptingProfileServiceSection.cs
- StopStoryboard.cs
- UrlPropertyAttribute.cs
- BitmapEffectInputConnector.cs
- IntegerValidator.cs
- DataService.cs