Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / InteropServices / SafeArrayTypeMismatchException.cs / 1305376 / 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);
}
[System.Security.SecuritySafeCritical] // auto-generated
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
- ErrorHandlingAcceptor.cs
- ComponentSerializationService.cs
- DataGridHyperlinkColumn.cs
- InteropBitmapSource.cs
- MetadataHelper.cs
- DataTableReader.cs
- ZoneMembershipCondition.cs
- MDIWindowDialog.cs
- ObjectView.cs
- ItemDragEvent.cs
- ContentPathSegment.cs
- IArgumentProvider.cs
- X509CertificateStore.cs
- TextBoxAutoCompleteSourceConverter.cs
- ping.cs
- TypedElement.cs
- XmlSequenceWriter.cs
- XmlStreamNodeWriter.cs
- WrappedIUnknown.cs
- ClientTargetCollection.cs
- SoapIncludeAttribute.cs
- SafeWaitHandle.cs
- Substitution.cs
- Label.cs
- SystemDropShadowChrome.cs
- PeerContact.cs
- _FtpControlStream.cs
- EventSinkHelperWriter.cs
- ProfileSettings.cs
- Camera.cs
- IsolatedStorageFileStream.cs
- SqlDataSourceCache.cs
- EnlistmentTraceIdentifier.cs
- _AutoWebProxyScriptWrapper.cs
- CompatibleIComparer.cs
- SimpleModelProvider.cs
- TraceProvider.cs
- SimpleLine.cs
- PeerTransportListenAddressValidator.cs
- CodeSubDirectory.cs
- ReflectionTypeLoadException.cs
- EpmCustomContentWriterNodeData.cs
- CallbackBehaviorAttribute.cs
- RijndaelManaged.cs
- EnumerationRangeValidationUtil.cs
- lengthconverter.cs
- SafeBitVector32.cs
- SrgsRulesCollection.cs
- CommonRemoteMemoryBlock.cs
- LogManagementAsyncResult.cs
- TextSpanModifier.cs
- PermissionRequestEvidence.cs
- Variable.cs
- ConstNode.cs
- PageSetupDialog.cs
- EntryIndex.cs
- TreeSet.cs
- sapiproxy.cs
- SqlTypeConverter.cs
- StrongNameUtility.cs
- SecureUICommand.cs
- UrlPath.cs
- BuildResultCache.cs
- ItemsControlAutomationPeer.cs
- ParseNumbers.cs
- XmlEnumAttribute.cs
- odbcmetadatacolumnnames.cs
- SettingsProperty.cs
- SessionEndingCancelEventArgs.cs
- SqlNotificationEventArgs.cs
- UpdatePanel.cs
- BinaryFormatterWriter.cs
- BinaryExpressionHelper.cs
- ManagementNamedValueCollection.cs
- AssociationSet.cs
- WsatServiceAddress.cs
- WebBrowser.cs
- InfiniteIntConverter.cs
- OleDbException.cs
- Win32.cs
- ADRole.cs
- HandlerBase.cs
- ReaderWriterLockWrapper.cs
- Types.cs
- ReflectionPermission.cs
- FamilyMap.cs
- ProfileService.cs
- FeatureManager.cs
- ProtectedUri.cs
- Cloud.cs
- ObjectDataProvider.cs
- DriveNotFoundException.cs
- PartitionedDataSource.cs
- Options.cs
- mediaclock.cs
- CapabilitiesUse.cs
- SecurityDescriptor.cs
- BasicKeyConstraint.cs
- SessionEndingCancelEventArgs.cs
- Internal.cs