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
- IItemContainerGenerator.cs
- DBSchemaTable.cs
- PairComparer.cs
- WebRequestModuleElementCollection.cs
- Registry.cs
- ObjRef.cs
- RetrieveVirtualItemEventArgs.cs
- DataGridColumnHeader.cs
- RadioButton.cs
- Pkcs9Attribute.cs
- WebPartDisplayModeCancelEventArgs.cs
- DataGridCheckBoxColumn.cs
- RootBuilder.cs
- AppModelKnownContentFactory.cs
- DataGridViewBand.cs
- UpdateTranslator.cs
- ColorConverter.cs
- TimeZone.cs
- ItemCheckedEvent.cs
- SqlRowUpdatingEvent.cs
- TabControlDesigner.cs
- Stacktrace.cs
- EntityContainerEmitter.cs
- WebPartDisplayModeCollection.cs
- _ConnectStream.cs
- NamedElement.cs
- BamlLocalizationDictionary.cs
- CheckBox.cs
- RuleSetDialog.Designer.cs
- OleAutBinder.cs
- PartialClassGenerationTaskInternal.cs
- SamlAuthenticationStatement.cs
- IndexOutOfRangeException.cs
- ContentElementCollection.cs
- TextBoxLine.cs
- ComponentDispatcher.cs
- SrgsElementFactory.cs
- TableParaClient.cs
- NodeLabelEditEvent.cs
- TextEmbeddedObject.cs
- RepeaterItem.cs
- HttpModulesInstallComponent.cs
- IncrementalReadDecoders.cs
- TaskExtensions.cs
- NotCondition.cs
- XmlSchemaSimpleTypeRestriction.cs
- TokenBasedSetEnumerator.cs
- TrackingLocation.cs
- SmiContextFactory.cs
- TrustLevel.cs
- CroppedBitmap.cs
- SerializationEventsCache.cs
- SchemaDeclBase.cs
- CodeDelegateCreateExpression.cs
- CellPartitioner.cs
- WebBrowserDocumentCompletedEventHandler.cs
- ReverseInheritProperty.cs
- ParameterSubsegment.cs
- BindingBase.cs
- Msmq4SubqueuePoisonHandler.cs
- ClientScriptManager.cs
- QueryTaskGroupState.cs
- ScriptControlDescriptor.cs
- FrameDimension.cs
- WSSecureConversationDec2005.cs
- FeatureSupport.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ToolStripDropDownClosingEventArgs.cs
- ChameleonKey.cs
- SqlStatistics.cs
- PartManifestEntry.cs
- SqlFunctions.cs
- CustomErrorsSection.cs
- SeparatorAutomationPeer.cs
- Matrix.cs
- DaylightTime.cs
- RelationshipSet.cs
- LocalClientSecuritySettingsElement.cs
- IPEndPoint.cs
- Vector3DIndependentAnimationStorage.cs
- DataGridViewImageColumn.cs
- QueryableDataSourceEditData.cs
- CacheOutputQuery.cs
- CrossAppDomainChannel.cs
- CodeChecksumPragma.cs
- Misc.cs
- IsolatedStoragePermission.cs
- ErrorStyle.cs
- DataGridViewIntLinkedList.cs
- TransformerTypeCollection.cs
- PassportAuthenticationModule.cs
- QueuePathEditor.cs
- RoleGroup.cs
- WebExceptionStatus.cs
- _UncName.cs
- SymDocumentType.cs
- WebServiceEnumData.cs
- LockingPersistenceProvider.cs
- CharEnumerator.cs
- DrawingServices.cs