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
- SerializationTrace.cs
- NodeLabelEditEvent.cs
- CodeLabeledStatement.cs
- TextElementAutomationPeer.cs
- DoubleConverter.cs
- InvokePattern.cs
- Adorner.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ToolStripRendererSwitcher.cs
- ContractMapping.cs
- XD.cs
- MD5CryptoServiceProvider.cs
- Label.cs
- IOException.cs
- ResourceExpressionBuilder.cs
- TagMapInfo.cs
- AtomParser.cs
- FunctionImportElement.cs
- MasterPageCodeDomTreeGenerator.cs
- DataGridViewRowConverter.cs
- SmtpReplyReader.cs
- TouchEventArgs.cs
- SplashScreenNativeMethods.cs
- WsdlImporterElementCollection.cs
- HtmlInputHidden.cs
- CompareValidator.cs
- InlineCategoriesDocument.cs
- DataDesignUtil.cs
- BitmapEffectDrawingContextWalker.cs
- XhtmlBasicControlAdapter.cs
- CollectionChangedEventManager.cs
- XPathDocumentBuilder.cs
- RsaSecurityKey.cs
- TimeSpanOrInfiniteConverter.cs
- GradientSpreadMethodValidation.cs
- DBCommandBuilder.cs
- ConstructorBuilder.cs
- BypassElementCollection.cs
- CssClassPropertyAttribute.cs
- QilDataSource.cs
- versioninfo.cs
- Context.cs
- SafeProcessHandle.cs
- SecurityRequiresReviewAttribute.cs
- Soap12ProtocolReflector.cs
- Semaphore.cs
- StateFinalizationDesigner.cs
- SharedStatics.cs
- ScrollProviderWrapper.cs
- StaticExtensionConverter.cs
- NativeMethods.cs
- CharEntityEncoderFallback.cs
- ProfileGroupSettings.cs
- UnregisterInfo.cs
- DataGridViewCellStyleEditor.cs
- LinearQuaternionKeyFrame.cs
- EmbeddedMailObject.cs
- safesecurityhelperavalon.cs
- AsyncOperationContext.cs
- ForeignKeyConstraint.cs
- TraceProvider.cs
- OracleMonthSpan.cs
- TypeConverterAttribute.cs
- XmlSchemaValidator.cs
- VolatileEnlistmentState.cs
- VisualProxy.cs
- DynamicDocumentPaginator.cs
- BitmapEffectDrawing.cs
- Function.cs
- Separator.cs
- PropertyChangedEventArgs.cs
- WriterOutput.cs
- SqlTopReducer.cs
- DBConcurrencyException.cs
- MetafileHeader.cs
- UxThemeWrapper.cs
- CellParagraph.cs
- BaseTemplateParser.cs
- ByteAnimationUsingKeyFrames.cs
- BaseParaClient.cs
- WaitHandleCannotBeOpenedException.cs
- DropTarget.cs
- SqlOuterApplyReducer.cs
- LogicalExpr.cs
- MailBnfHelper.cs
- BamlResourceSerializer.cs
- XmlIlVisitor.cs
- PeerIPHelper.cs
- TableLayout.cs
- DataGridViewCellValidatingEventArgs.cs
- ComponentEditorPage.cs
- TextServicesDisplayAttribute.cs
- SessionParameter.cs
- ConfigurationProviderException.cs
- Point3DAnimation.cs
- AccessorTable.cs
- StrokeNode.cs
- RSACryptoServiceProvider.cs
- RenderData.cs
- Or.cs