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
- ManualResetEvent.cs
- AuthenticationServiceManager.cs
- DesignerCommandSet.cs
- WebServiceTypeData.cs
- FontEmbeddingManager.cs
- TypefaceMap.cs
- CodeIdentifiers.cs
- HostProtectionPermission.cs
- QueryOperator.cs
- WhileDesigner.xaml.cs
- WmfPlaceableFileHeader.cs
- EventProxy.cs
- DataComponentNameHandler.cs
- MetadataCache.cs
- AssemblyContextControlItem.cs
- Semaphore.cs
- ApplicationGesture.cs
- ResetableIterator.cs
- AssemblyName.cs
- DataSourceListEditor.cs
- Base64Encoder.cs
- WebPartManager.cs
- CriticalHandle.cs
- OrderedDictionaryStateHelper.cs
- ConfigurationElementCollection.cs
- DataMember.cs
- HttpProtocolReflector.cs
- XPathNavigatorKeyComparer.cs
- WindowsSpinner.cs
- TextServicesCompartmentContext.cs
- XamlSerializerUtil.cs
- InheritedPropertyChangedEventArgs.cs
- ElementsClipboardData.cs
- TypeLoadException.cs
- SecUtil.cs
- EntityDataSourceConfigureObjectContext.cs
- WindowsButton.cs
- ArrayConverter.cs
- StrokeNodeEnumerator.cs
- RuntimeHelpers.cs
- DataMisalignedException.cs
- ViewLoader.cs
- HwndSourceKeyboardInputSite.cs
- EntityDataSourceMemberPath.cs
- DetailsViewDeletedEventArgs.cs
- DelegatingHeader.cs
- XmlSerializationWriter.cs
- HealthMonitoringSection.cs
- FontEmbeddingManager.cs
- RealizedColumnsBlock.cs
- ContextMenuStrip.cs
- Cursor.cs
- WebPartUserCapability.cs
- SelectionPattern.cs
- AbstractSvcMapFileLoader.cs
- AssertSection.cs
- AccessDataSourceView.cs
- DesignerMetadata.cs
- TerminatorSinks.cs
- ToggleProviderWrapper.cs
- FreeFormDesigner.cs
- ModelVisual3D.cs
- DependencyPropertyChangedEventArgs.cs
- ClientBuildManager.cs
- PathSegmentCollection.cs
- OrderingExpression.cs
- ControlPropertyNameConverter.cs
- SecurityChannelListener.cs
- JpegBitmapEncoder.cs
- Attribute.cs
- CssTextWriter.cs
- DBCSCodePageEncoding.cs
- EditorServiceContext.cs
- EventSetter.cs
- BamlResourceDeserializer.cs
- SizeValueSerializer.cs
- RadioButtonList.cs
- Permission.cs
- DataGridViewTextBoxColumn.cs
- KnownTypes.cs
- Validator.cs
- AppliedDeviceFiltersDialog.cs
- RequestCachePolicy.cs
- Collection.cs
- StaticContext.cs
- UIElementHelper.cs
- SelectingProviderEventArgs.cs
- BrowserDefinition.cs
- MsmqReceiveParameters.cs
- WindowsTooltip.cs
- SocketElement.cs
- MarkupCompiler.cs
- Invariant.cs
- TableSectionStyle.cs
- DataContext.cs
- LongTypeConverter.cs
- StylusTip.cs
- CfgParser.cs
- SchemaInfo.cs
- GridViewSelectEventArgs.cs