Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RoutedEventConverter.cs
- BackgroundWorker.cs
- EventDescriptorCollection.cs
- FlowNode.cs
- LongValidator.cs
- DataSourceExpressionCollection.cs
- PerspectiveCamera.cs
- TraceEventCache.cs
- AuthorizationSection.cs
- SqlDelegatedTransaction.cs
- XamlInterfaces.cs
- TimerTable.cs
- TabControlEvent.cs
- DataRelationCollection.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SystemNetHelpers.cs
- CompilationSection.cs
- EdmSchemaError.cs
- LayeredChannelListener.cs
- MetadataUtil.cs
- BindValidationContext.cs
- WorkflowInstanceContextProvider.cs
- AppSecurityManager.cs
- DBCommandBuilder.cs
- WorkflowDebuggerSteppingAttribute.cs
- Attributes.cs
- CapabilitiesAssignment.cs
- CustomAttributeSerializer.cs
- QueryResultOp.cs
- ToolBarButton.cs
- AnnotationAdorner.cs
- RadioButtonPopupAdapter.cs
- EntityReference.cs
- ItemContainerGenerator.cs
- FrameDimension.cs
- PathSegmentCollection.cs
- XmlDataCollection.cs
- HttpResponseInternalWrapper.cs
- TimeSpanStorage.cs
- DataTableMappingCollection.cs
- PublisherIdentityPermission.cs
- SeekStoryboard.cs
- DelimitedListTraceListener.cs
- SafeRightsManagementPubHandle.cs
- HttpCachePolicyElement.cs
- Marshal.cs
- WeakEventTable.cs
- JumpItem.cs
- RegistryDataKey.cs
- Update.cs
- TextParagraph.cs
- SHA512Managed.cs
- ZipIOModeEnforcingStream.cs
- SoapSchemaImporter.cs
- HwndPanningFeedback.cs
- DefaultDialogButtons.cs
- CodeAccessPermission.cs
- BindUriHelper.cs
- SiteMapPath.cs
- XmlSchemaDatatype.cs
- Int16AnimationBase.cs
- ValueSerializerAttribute.cs
- TargetConverter.cs
- ValidateNames.cs
- ShaderEffect.cs
- CharStorage.cs
- WindowsListBox.cs
- SiteMapDesignerDataSourceView.cs
- WebUtil.cs
- TreeSet.cs
- ToolStripPanelCell.cs
- FixedPosition.cs
- HashAlgorithm.cs
- WinFormsComponentEditor.cs
- EventLogPermissionEntryCollection.cs
- path.cs
- DataGridViewTopRowAccessibleObject.cs
- ConfigXmlSignificantWhitespace.cs
- ClientSponsor.cs
- GeometryConverter.cs
- PropertyConverter.cs
- ValidationHelpers.cs
- DbTypeMap.cs
- SafeLibraryHandle.cs
- ThreadAttributes.cs
- CompositeScriptReferenceEventArgs.cs
- SeverityFilter.cs
- Grid.cs
- ImageMap.cs
- SQLDecimal.cs
- SqlMetaData.cs
- CatalogPartCollection.cs
- precedingquery.cs
- ConfigurationElementCollection.cs
- ImageSourceValueSerializer.cs
- EventManager.cs
- basecomparevalidator.cs
- DragDeltaEventArgs.cs
- WmlFormAdapter.cs
- SchemaManager.cs