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
- RuntimeWrappedException.cs
- SBCSCodePageEncoding.cs
- InProcStateClientManager.cs
- SystemIcons.cs
- DataGridClipboardHelper.cs
- EventNotify.cs
- Vector3DValueSerializer.cs
- TableDetailsRow.cs
- EncryptedData.cs
- DataGridItemCollection.cs
- LocationUpdates.cs
- OracleConnectionFactory.cs
- GridViewCancelEditEventArgs.cs
- streamingZipPartStream.cs
- SingleAnimation.cs
- unsafeIndexingFilterStream.cs
- StringUtil.cs
- ScopedKnownTypes.cs
- XamlReaderHelper.cs
- HuffModule.cs
- DBCommand.cs
- CompareValidator.cs
- PreviewKeyDownEventArgs.cs
- AccessDataSourceView.cs
- WorkItem.cs
- ServiceDeploymentInfo.cs
- EmptyStringExpandableObjectConverter.cs
- DataSourceCache.cs
- ZoneMembershipCondition.cs
- AdapterDictionary.cs
- DispatcherOperation.cs
- SafeBitVector32.cs
- ContextInformation.cs
- Validator.cs
- ExternalCalls.cs
- FlowDocumentReaderAutomationPeer.cs
- Int16AnimationUsingKeyFrames.cs
- HTMLTextWriter.cs
- ClientSettingsProvider.cs
- SystemIPInterfaceProperties.cs
- ObjectListFieldCollection.cs
- IIS7UserPrincipal.cs
- OleDbEnumerator.cs
- AvTraceFormat.cs
- ConfigurationManagerInternal.cs
- DateTimeFormat.cs
- EntityType.cs
- CodeIterationStatement.cs
- DefaultBinder.cs
- Span.cs
- StateFinalizationActivity.cs
- DataSourceComponent.cs
- ToolStripProgressBar.cs
- OwnerDrawPropertyBag.cs
- AncestorChangedEventArgs.cs
- KeyedHashAlgorithm.cs
- InlinedAggregationOperator.cs
- CatalogPart.cs
- CodeExporter.cs
- CredentialCache.cs
- arclist.cs
- TargetException.cs
- GridViewUpdateEventArgs.cs
- SqlUdtInfo.cs
- CellIdBoolean.cs
- MemberJoinTreeNode.cs
- Perspective.cs
- ChtmlImageAdapter.cs
- ContractListAdapter.cs
- WebBrowserDocumentCompletedEventHandler.cs
- EventMappingSettings.cs
- GridViewColumn.cs
- DataGridViewCell.cs
- EntityDataSourceDesigner.cs
- HyperLinkDataBindingHandler.cs
- XmlnsDictionary.cs
- ManagedIStream.cs
- BindingCollection.cs
- SamlAdvice.cs
- PositiveTimeSpanValidator.cs
- MemberDescriptor.cs
- WebServiceResponseDesigner.cs
- PenCursorManager.cs
- TrackingStringDictionary.cs
- DateTime.cs
- RuntimeWrappedException.cs
- Label.cs
- Permission.cs
- CodeNamespaceImport.cs
- ViewStateException.cs
- InvariantComparer.cs
- SendKeys.cs
- StringReader.cs
- TextCollapsingProperties.cs
- MostlySingletonList.cs
- MouseGestureValueSerializer.cs
- SQLInt16Storage.cs
- ScriptRef.cs
- Decoder.cs
- DynamicValidator.cs