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
- XPathParser.cs
- TransactionState.cs
- StoreItemCollection.cs
- CatalogZone.cs
- FixedSOMFixedBlock.cs
- KeyGestureConverter.cs
- SelectionProviderWrapper.cs
- KerberosSecurityTokenProvider.cs
- UserControlParser.cs
- Pts.cs
- CompareValidator.cs
- ProxyAttribute.cs
- Simplifier.cs
- CorrelationManager.cs
- HtmlImage.cs
- InstallerTypeAttribute.cs
- ReceiveReply.cs
- NTAccount.cs
- UseLicense.cs
- CodeDelegateInvokeExpression.cs
- OdbcConnectionStringbuilder.cs
- ToolboxItem.cs
- ImageFormat.cs
- DetailsViewPagerRow.cs
- DispatcherProcessingDisabled.cs
- PeerCollaborationPermission.cs
- CompleteWizardStep.cs
- followingsibling.cs
- UnsafeNativeMethods.cs
- Drawing.cs
- TTSVoice.cs
- NetCodeGroup.cs
- Adorner.cs
- InputManager.cs
- IndentedTextWriter.cs
- PanelStyle.cs
- GroupItemAutomationPeer.cs
- EditorPartCollection.cs
- ModuleBuilderData.cs
- CustomAttribute.cs
- HoistedLocals.cs
- ObjectCache.cs
- WebPartCollection.cs
- GlobalizationSection.cs
- SetStateEventArgs.cs
- DragDrop.cs
- CompilationUtil.cs
- MultiBindingExpression.cs
- X509Certificate2.cs
- XmlDocumentFragment.cs
- _BufferOffsetSize.cs
- ClientTargetSection.cs
- ProcessHostFactoryHelper.cs
- ExtensionWindowHeader.cs
- TemplateBamlRecordReader.cs
- NonBatchDirectoryCompiler.cs
- TrackPointCollection.cs
- SecurityPermission.cs
- SoapHeader.cs
- ColumnReorderedEventArgs.cs
- XmlArrayItemAttributes.cs
- HttpServerVarsCollection.cs
- SqlNamer.cs
- HitTestFilterBehavior.cs
- LabelDesigner.cs
- XmlTextReaderImplHelpers.cs
- DocumentOrderQuery.cs
- HWStack.cs
- TerminatorSinks.cs
- MenuItemBinding.cs
- ChangeDirector.cs
- CannotUnloadAppDomainException.cs
- WmlLinkAdapter.cs
- ErrorHandlerModule.cs
- SchemaMerger.cs
- Executor.cs
- UnionExpr.cs
- WebPartCollection.cs
- BamlRecordWriter.cs
- SharedPersonalizationStateInfo.cs
- XPathAncestorQuery.cs
- designeractionbehavior.cs
- CurrentChangingEventArgs.cs
- SecurityPolicySection.cs
- SqlDataSource.cs
- BamlResourceDeserializer.cs
- CanExpandCollapseAllConverter.cs
- CodeGroup.cs
- TreeNodeCollection.cs
- CLSCompliantAttribute.cs
- HtmlControl.cs
- IODescriptionAttribute.cs
- ParentQuery.cs
- XmlTypeAttribute.cs
- TextContainer.cs
- FocusTracker.cs
- hresults.cs
- GeneralTransform3DCollection.cs
- RoleServiceManager.cs
- SmtpNtlmAuthenticationModule.cs