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
- MeasurementDCInfo.cs
- XPathSelectionIterator.cs
- Int16.cs
- ExpandSegment.cs
- FlowLayoutPanel.cs
- FontStretches.cs
- ProxyWebPartConnectionCollection.cs
- BuildProviderUtils.cs
- PageCache.cs
- ColorInterpolationModeValidation.cs
- Panel.cs
- HMACSHA256.cs
- DeclaredTypeElementCollection.cs
- DisposableCollectionWrapper.cs
- ListViewItemSelectionChangedEvent.cs
- SkewTransform.cs
- TreeNodeEventArgs.cs
- StringComparer.cs
- AnonymousIdentificationSection.cs
- MimeTypePropertyAttribute.cs
- CompleteWizardStep.cs
- EventsTab.cs
- WebPartUtil.cs
- PageCatalogPart.cs
- WizardStepCollectionEditor.cs
- UpdateExpressionVisitor.cs
- ScrollBar.cs
- CommittableTransaction.cs
- XmlQueryOutput.cs
- InstanceDescriptor.cs
- PackageStore.cs
- ListViewCommandEventArgs.cs
- GridViewRowEventArgs.cs
- TypeExtensionConverter.cs
- BulletDecorator.cs
- TreeSet.cs
- BuildProvider.cs
- Control.cs
- WebPartUserCapability.cs
- LinkArea.cs
- UxThemeWrapper.cs
- GetParentChain.cs
- QuaternionIndependentAnimationStorage.cs
- Delay.cs
- PointCollectionConverter.cs
- ExpressionBindings.cs
- PathSegment.cs
- FilteredXmlReader.cs
- Processor.cs
- WebPartDescriptionCollection.cs
- KeyValueConfigurationCollection.cs
- RefreshEventArgs.cs
- MetadataPropertyvalue.cs
- FixedSOMElement.cs
- BindableAttribute.cs
- Condition.cs
- ObjectDataSourceFilteringEventArgs.cs
- WebConfigurationFileMap.cs
- XPathNodeInfoAtom.cs
- PersonalizationEntry.cs
- XmlSchemaAttributeGroup.cs
- PointValueSerializer.cs
- KeyGesture.cs
- TimeoutValidationAttribute.cs
- ServiceModelConfigurationSectionCollection.cs
- Part.cs
- PointConverter.cs
- PersonalizationProviderCollection.cs
- KeyboardEventArgs.cs
- TextEffectResolver.cs
- MetadataItemCollectionFactory.cs
- ObjectSpanRewriter.cs
- OleDragDropHandler.cs
- BamlWriter.cs
- DataGridViewCellParsingEventArgs.cs
- DashStyle.cs
- SemanticResultValue.cs
- DataDocumentXPathNavigator.cs
- SQLMembershipProvider.cs
- MatrixTransform3D.cs
- BrowserDefinitionCollection.cs
- SimpleHandlerFactory.cs
- ContentIterators.cs
- ApplicationServiceHelper.cs
- Unit.cs
- ByteStreamMessage.cs
- SingleObjectCollection.cs
- ConfigurationSectionGroup.cs
- sitestring.cs
- DesignerAttribute.cs
- DataGridViewComboBoxColumnDesigner.cs
- NavigationService.cs
- EntitySetBase.cs
- SoapHttpTransportImporter.cs
- WebConfigurationManager.cs
- ADConnectionHelper.cs
- SplitterEvent.cs
- StoreUtilities.cs
- TerminateSequence.cs
- DropDownList.cs