Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- InternalConfigSettingsFactory.cs
- WebRequestModuleElement.cs
- Double.cs
- DurableEnlistmentState.cs
- DataPagerFieldCommandEventArgs.cs
- ChildTable.cs
- BinaryUtilClasses.cs
- SchemaCompiler.cs
- ConfigurationElement.cs
- TypeConverters.cs
- RegexRunner.cs
- PageParser.cs
- DbConnectionHelper.cs
- ViewStateException.cs
- ByteAnimation.cs
- XmlAtomicValue.cs
- XmlArrayItemAttributes.cs
- NamespaceList.cs
- FigureParagraph.cs
- UIElement.cs
- Property.cs
- JournalEntryListConverter.cs
- XmlDataFileEditor.cs
- SpeechRecognitionEngine.cs
- ImageListImageEditor.cs
- SoundPlayer.cs
- XappLauncher.cs
- TaskDesigner.cs
- WebPartTransformerCollection.cs
- TreePrinter.cs
- PartialList.cs
- NamedPipeDuplicateContext.cs
- CodeDirectoryCompiler.cs
- DeploymentExceptionMapper.cs
- XPathScanner.cs
- XmlDownloadManager.cs
- ConstrainedDataObject.cs
- WindowsMenu.cs
- remotingproxy.cs
- HttpPostServerProtocol.cs
- MatrixUtil.cs
- Boolean.cs
- Assembly.cs
- columnmapkeybuilder.cs
- TextBoxBaseDesigner.cs
- ReflectPropertyDescriptor.cs
- UnsafeNetInfoNativeMethods.cs
- CfgRule.cs
- SQLRoleProvider.cs
- AnnotationResourceCollection.cs
- ResourceCategoryAttribute.cs
- TextSimpleMarkerProperties.cs
- DataComponentNameHandler.cs
- PixelShader.cs
- ServiceMoniker.cs
- WindowsContainer.cs
- PolyBezierSegment.cs
- ButtonBaseAutomationPeer.cs
- WebConvert.cs
- CachedTypeface.cs
- ListViewTableCell.cs
- SqlConnectionPoolGroupProviderInfo.cs
- IsolatedStorageFilePermission.cs
- WeakReference.cs
- WinEventHandler.cs
- CreateDataSourceDialog.cs
- XamlRtfConverter.cs
- ArcSegment.cs
- SubqueryRules.cs
- COM2TypeInfoProcessor.cs
- MarshalDirectiveException.cs
- TextSearch.cs
- ImageButton.cs
- DataGridRowEventArgs.cs
- ITreeGenerator.cs
- PathGradientBrush.cs
- DrawingContextDrawingContextWalker.cs
- SqlDataSource.cs
- SQLBinary.cs
- _SingleItemRequestCache.cs
- HandlerFactoryCache.cs
- XmlILOptimizerVisitor.cs
- ColorEditor.cs
- HtmlInputCheckBox.cs
- SettingsContext.cs
- X509DefaultServiceCertificateElement.cs
- TransactionScope.cs
- BaseAutoFormat.cs
- CompilerWrapper.cs
- MimeXmlImporter.cs
- EdmConstants.cs
- SoapTypeAttribute.cs
- XmlLanguageConverter.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- AssemblyFilter.cs
- Int32.cs
- AssemblyName.cs
- BasicKeyConstraint.cs
- SetIndexBinder.cs
- FixedSOMTableCell.cs