Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / TypeAccessException.cs / 1305376 / TypeAccessException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
using System.Runtime.Serialization;
using System.Security;
namespace System
{
// TypeAccessException derives from TypeLoadException rather than MemberAccessException because in
// pre-v4 releases of the runtime TypeLoadException was used in lieu of a TypeAccessException.
[Serializable]
public class TypeAccessException : TypeLoadException
{
public TypeAccessException()
: base(Environment.GetResourceString("Arg_TypeAccessException"))
{
SetErrorCode(__HResults.COR_E_TYPEACCESS);
}
public TypeAccessException(string message)
: base(message)
{
SetErrorCode(__HResults.COR_E_TYPEACCESS);
}
public TypeAccessException(string message, Exception inner)
: base(message, inner)
{
SetErrorCode(__HResults.COR_E_TYPEACCESS);
}
protected TypeAccessException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
SetErrorCode(__HResults.COR_E_TYPEACCESS);
}
}
}
// 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
- DrawingBrush.cs
- CodeBinaryOperatorExpression.cs
- SmiContextFactory.cs
- OdbcFactory.cs
- SecurityDescriptor.cs
- BooleanAnimationBase.cs
- DesignerGeometryHelper.cs
- PanelDesigner.cs
- ConfigurationManagerHelperFactory.cs
- ItemContainerPattern.cs
- FormatVersion.cs
- ServiceModelEnumValidator.cs
- DesignerForm.cs
- ServiceContractDetailViewControl.cs
- XmlSchemaExternal.cs
- GcHandle.cs
- counter.cs
- Action.cs
- basevalidator.cs
- DragEvent.cs
- MenuItem.cs
- PictureBox.cs
- CompilerLocalReference.cs
- ToolZone.cs
- TreeNodeConverter.cs
- CharEntityEncoderFallback.cs
- RuntimeHelpers.cs
- WpfXamlType.cs
- PersistenceException.cs
- ProgressBarHighlightConverter.cs
- ContainerVisual.cs
- XslCompiledTransform.cs
- HttpResponseHeader.cs
- MaskedTextProvider.cs
- ImageAttributes.cs
- ResourceReferenceKeyNotFoundException.cs
- SqlDataSourceSelectingEventArgs.cs
- ExpressionBinding.cs
- NativeMethods.cs
- OpCodes.cs
- FormViewPagerRow.cs
- Calendar.cs
- _SecureChannel.cs
- DefaultObjectMappingItemCollection.cs
- BasicBrowserDialog.cs
- FragmentQuery.cs
- FontFamilyValueSerializer.cs
- _ChunkParse.cs
- ThreadExceptionDialog.cs
- ThemeableAttribute.cs
- ArgIterator.cs
- SiblingIterators.cs
- UnsafeNativeMethodsTablet.cs
- ViewBox.cs
- ResourceManager.cs
- EntityChangedParams.cs
- UriSection.cs
- SoapEnumAttribute.cs
- FontResourceCache.cs
- XmlResolver.cs
- SystemIPGlobalStatistics.cs
- SqlDataSourceSelectingEventArgs.cs
- TabControlAutomationPeer.cs
- CookieHandler.cs
- HtmlDocument.cs
- OutOfMemoryException.cs
- ObjectQuery_EntitySqlExtensions.cs
- ServiceModelStringsVersion1.cs
- XmlSignificantWhitespace.cs
- PartialList.cs
- ConcurrentQueue.cs
- ValidationResult.cs
- TextBoxBase.cs
- ObjectNotFoundException.cs
- CodeExporter.cs
- _AuthenticationState.cs
- FileLogRecordHeader.cs
- FontClient.cs
- NamedPipeProcessProtocolHandler.cs
- ProvideValueServiceProvider.cs
- JsonDataContract.cs
- PropertyValueUIItem.cs
- AddInControllerImpl.cs
- TreeViewEvent.cs
- OleStrCAMarshaler.cs
- TraceLevelStore.cs
- BamlTreeNode.cs
- AddInControllerImpl.cs
- SetIterators.cs
- XmlFormatExtensionAttribute.cs
- KeyToListMap.cs
- AutomationProperties.cs
- Boolean.cs
- DataGridTablesFactory.cs
- ZipIOExtraFieldPaddingElement.cs
- Knowncolors.cs
- FlagsAttribute.cs
- RawMouseInputReport.cs
- GridViewEditEventArgs.cs
- StylusPointPropertyInfo.cs