Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Runtime / InteropServices / SafeArrayTypeMismatchException.cs / 1 / SafeArrayTypeMismatchException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: SafeArrayTypeMismatchException ** ** Purpose: This exception is thrown when the runtime type of an array ** is different than the safe array sub type specified in the ** metadata. ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class SafeArrayTypeMismatchException : SystemException { public SafeArrayTypeMismatchException() : base(Environment.GetResourceString("Arg_SafeArrayTypeMismatchException")) { SetErrorCode(__HResults.COR_E_SAFEARRAYTYPEMISMATCH); } public SafeArrayTypeMismatchException(String message) : base(message) { SetErrorCode(__HResults.COR_E_SAFEARRAYTYPEMISMATCH); } public SafeArrayTypeMismatchException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_SAFEARRAYTYPEMISMATCH); } protected SafeArrayTypeMismatchException(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: SafeArrayTypeMismatchException ** ** Purpose: This exception is thrown when the runtime type of an array ** is different than the safe array sub type specified in the ** metadata. ** =============================================================================*/ namespace System.Runtime.InteropServices { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class SafeArrayTypeMismatchException : SystemException { public SafeArrayTypeMismatchException() : base(Environment.GetResourceString("Arg_SafeArrayTypeMismatchException")) { SetErrorCode(__HResults.COR_E_SAFEARRAYTYPEMISMATCH); } public SafeArrayTypeMismatchException(String message) : base(message) { SetErrorCode(__HResults.COR_E_SAFEARRAYTYPEMISMATCH); } public SafeArrayTypeMismatchException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_SAFEARRAYTYPEMISMATCH); } protected SafeArrayTypeMismatchException(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
- TaskDesigner.cs
- OdbcTransaction.cs
- NullableIntSumAggregationOperator.cs
- EndpointNameMessageFilter.cs
- DataColumnPropertyDescriptor.cs
- FacetValueContainer.cs
- SQLMoneyStorage.cs
- Util.cs
- RequiredFieldValidator.cs
- BitmapEffect.cs
- ClassData.cs
- Visual3D.cs
- HtmlInputButton.cs
- MouseOverProperty.cs
- FormatPage.cs
- ModuleBuilder.cs
- AttributeAction.cs
- NoClickablePointException.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- RequestCachePolicy.cs
- PerformanceCounterPermission.cs
- XmlAttributeAttribute.cs
- ElementNotAvailableException.cs
- XmlAttributeAttribute.cs
- WasEndpointConfigContainer.cs
- WindowsListBox.cs
- GeneralTransformGroup.cs
- PlainXmlDeserializer.cs
- DataGridCellItemAutomationPeer.cs
- RawMouseInputReport.cs
- PostBackTrigger.cs
- SubtreeProcessor.cs
- Emitter.cs
- XmlSchemaValidator.cs
- OciLobLocator.cs
- IntMinMaxAggregationOperator.cs
- unitconverter.cs
- TagPrefixCollection.cs
- ObjectNavigationPropertyMapping.cs
- ForEachAction.cs
- NavigatorOutput.cs
- CodeTypeMemberCollection.cs
- SmtpNegotiateAuthenticationModule.cs
- SafeThemeHandle.cs
- RuntimeHelpers.cs
- PeerApplicationLaunchInfo.cs
- Matrix3DStack.cs
- IPCCacheManager.cs
- Int32EqualityComparer.cs
- SchemaElementLookUpTableEnumerator.cs
- ResourceDictionary.cs
- BCLDebug.cs
- ReverseInheritProperty.cs
- OdbcStatementHandle.cs
- CapabilitiesState.cs
- ActivationWorker.cs
- RegionIterator.cs
- GeometryHitTestParameters.cs
- ValueTable.cs
- SafeSystemMetrics.cs
- DataGridClipboardHelper.cs
- GraphicsPathIterator.cs
- DispatcherExceptionEventArgs.cs
- SerializationEventsCache.cs
- ObjectContextServiceProvider.cs
- WinFormsComponentEditor.cs
- Identity.cs
- FileInfo.cs
- SerialStream.cs
- VectorValueSerializer.cs
- CommonProperties.cs
- MachineKey.cs
- contentDescriptor.cs
- ExtendedProperty.cs
- SharedStatics.cs
- NativeRecognizer.cs
- MissingFieldException.cs
- XmlDeclaration.cs
- FixedDocumentPaginator.cs
- UnmanagedMemoryStream.cs
- DataGridCaption.cs
- ScopedKnownTypes.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- Splitter.cs
- StaticSiteMapProvider.cs
- SemanticAnalyzer.cs
- TextEditorCharacters.cs
- VariantWrapper.cs
- EntityWithKeyStrategy.cs
- Substitution.cs
- BamlTreeUpdater.cs
- ProcessHost.cs
- WebBrowserNavigatedEventHandler.cs
- OracleInfoMessageEventArgs.cs
- IISUnsafeMethods.cs
- PageCache.cs
- WebPartZone.cs
- DeploymentSection.cs
- ImageAutomationPeer.cs
- PassportAuthentication.cs