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
- MailWebEventProvider.cs
- MultiByteCodec.cs
- DirectoryObjectSecurity.cs
- Registration.cs
- Span.cs
- StandardTransformFactory.cs
- HuffModule.cs
- Version.cs
- ConfigurationLockCollection.cs
- XslVisitor.cs
- TemplateBuilder.cs
- VScrollBar.cs
- WCFBuildProvider.cs
- DataRelation.cs
- TemplateColumn.cs
- ImageMetadata.cs
- DataBindingHandlerAttribute.cs
- IPPacketInformation.cs
- SqlDataSource.cs
- InvokeMethodActivity.cs
- TextRange.cs
- IDQuery.cs
- CodeSubDirectory.cs
- WizardStepBase.cs
- _ListenerResponseStream.cs
- ICspAsymmetricAlgorithm.cs
- MouseEventArgs.cs
- DataTableReaderListener.cs
- MarkupExtensionParser.cs
- RelatedEnd.cs
- IgnoreFlushAndCloseStream.cs
- MultiTouchSystemGestureLogic.cs
- DecryptRequest.cs
- Compress.cs
- SessionStateUtil.cs
- SqlClientFactory.cs
- FeatureAttribute.cs
- GZipDecoder.cs
- WindowsAuthenticationEventArgs.cs
- UserControlBuildProvider.cs
- TypeKeyValue.cs
- Parallel.cs
- GenericUriParser.cs
- LexicalChunk.cs
- EdmComplexTypeAttribute.cs
- RootBrowserWindowProxy.cs
- Win32.cs
- CodeMemberEvent.cs
- WSDualHttpBindingCollectionElement.cs
- SizeAnimationUsingKeyFrames.cs
- ListItemConverter.cs
- DependentList.cs
- WizardPanelChangingEventArgs.cs
- PropertyItem.cs
- METAHEADER.cs
- ProgressiveCrcCalculatingStream.cs
- TrustManagerMoreInformation.cs
- IsolatedStorageFileStream.cs
- QilFunction.cs
- ISCIIEncoding.cs
- ReadOnlyDataSourceView.cs
- UpdateCommand.cs
- TaiwanCalendar.cs
- ClientBuildManager.cs
- EventData.cs
- GeometryModel3D.cs
- DataGridViewTextBoxColumn.cs
- HandleValueEditor.cs
- CustomAssemblyResolver.cs
- ContentTextAutomationPeer.cs
- XslNumber.cs
- VectorAnimationUsingKeyFrames.cs
- ItemsPanelTemplate.cs
- MessageQueueTransaction.cs
- XmlDictionaryReaderQuotas.cs
- MasterPageCodeDomTreeGenerator.cs
- ObjectIDGenerator.cs
- ConnectionProviderAttribute.cs
- DateTimeHelper.cs
- Version.cs
- RegexGroupCollection.cs
- CodeNamespaceImport.cs
- CompressedStack.cs
- SettingsPropertyValueCollection.cs
- ConfigurationManagerInternal.cs
- GeneralTransform3DGroup.cs
- QueryOperationResponseOfT.cs
- TableLayout.cs
- IdentityModelDictionary.cs
- KeyboardEventArgs.cs
- ResourcePart.cs
- NameTable.cs
- DetailsViewRowCollection.cs
- DataObject.cs
- WebEventTraceProvider.cs
- Oci.cs
- DataControlButton.cs
- PageRequestManager.cs
- WizardPanelChangingEventArgs.cs
- DataGridViewIntLinkedList.cs