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
- ObjectDataSourceSelectingEventArgs.cs
- TabControl.cs
- CollectionContainer.cs
- HtmlUtf8RawTextWriter.cs
- TextDecorationCollectionConverter.cs
- Util.cs
- ArraySegment.cs
- String.cs
- SchemaNamespaceManager.cs
- AssemblyNameEqualityComparer.cs
- DataStreams.cs
- XmlArrayAttribute.cs
- FileDialogCustomPlacesCollection.cs
- XmlSchemaProviderAttribute.cs
- OdbcErrorCollection.cs
- _CacheStreams.cs
- ColorConvertedBitmap.cs
- PhotoPrintingIntent.cs
- httpserverutility.cs
- ListViewInsertEventArgs.cs
- SecurityTokenAuthenticator.cs
- OutputScopeManager.cs
- isolationinterop.cs
- MappingItemCollection.cs
- As.cs
- Font.cs
- ToolboxItemFilterAttribute.cs
- AsymmetricKeyExchangeDeformatter.cs
- webbrowsersite.cs
- PermissionSetEnumerator.cs
- Package.cs
- ObjectStateManager.cs
- ObjectKeyFrameCollection.cs
- Relationship.cs
- MruCache.cs
- WindowsFormsEditorServiceHelper.cs
- MobileTemplatedControlDesigner.cs
- SQLDecimal.cs
- ContactManager.cs
- TypeUsage.cs
- CodeNamespaceCollection.cs
- XmlArrayAttribute.cs
- DataGridViewRow.cs
- DataGridViewCellStyle.cs
- TypeLoadException.cs
- AudioFormatConverter.cs
- XmlExpressionDumper.cs
- ParseElement.cs
- ImageClickEventArgs.cs
- CustomCategoryAttribute.cs
- BaseTemplateCodeDomTreeGenerator.cs
- XmlDigitalSignatureProcessor.cs
- IChannel.cs
- Parameter.cs
- TabletCollection.cs
- ErrorHandler.cs
- AVElementHelper.cs
- AuthorizationRule.cs
- RedistVersionInfo.cs
- PropertyIDSet.cs
- ConfigXmlWhitespace.cs
- FormViewDeleteEventArgs.cs
- SchemaName.cs
- Parameter.cs
- TextPattern.cs
- XmlCharacterData.cs
- mediaeventshelper.cs
- VBIdentifierName.cs
- RNGCryptoServiceProvider.cs
- StoreAnnotationsMap.cs
- XmlSchemaElement.cs
- RenderData.cs
- NumberFunctions.cs
- ThreadAttributes.cs
- XmlCountingReader.cs
- XamlRtfConverter.cs
- HandlerFactoryCache.cs
- TextRange.cs
- RoleManagerEventArgs.cs
- FileUtil.cs
- TrimSurroundingWhitespaceAttribute.cs
- ConstructorExpr.cs
- ReferenceService.cs
- _LocalDataStore.cs
- HMAC.cs
- CommandExpr.cs
- SqlCommandBuilder.cs
- NameSpaceExtractor.cs
- RC2.cs
- AccessDataSourceView.cs
- _NtlmClient.cs
- EnumerableRowCollection.cs
- ResourceLoader.cs
- ActivationWorker.cs
- MarkupExtensionParser.cs
- RegistryKey.cs
- MessageSecurityProtocolFactory.cs
- ComplexBindingPropertiesAttribute.cs
- SourceItem.cs
- DbCommandDefinition.cs