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
- ObjectIDGenerator.cs
- Bits.cs
- SkipQueryOptionExpression.cs
- SamlSubjectStatement.cs
- SqlMetaData.cs
- DynamicRenderer.cs
- IPGlobalProperties.cs
- HandleRef.cs
- DesignerAttribute.cs
- ToolStripSeparator.cs
- StringStorage.cs
- DrawingCollection.cs
- XPathSelfQuery.cs
- X509Extension.cs
- HtmlTableRow.cs
- DrawingBrush.cs
- Security.cs
- DbConvert.cs
- PrintEvent.cs
- TypeSystemHelpers.cs
- DataGridViewTopRowAccessibleObject.cs
- ConsoleCancelEventArgs.cs
- Rotation3D.cs
- SQLInt16.cs
- ContainerUtilities.cs
- Utils.cs
- ImageButton.cs
- codemethodreferenceexpression.cs
- FormViewUpdatedEventArgs.cs
- RegisteredExpandoAttribute.cs
- SplineKeyFrames.cs
- GeneralTransformGroup.cs
- BackgroundFormatInfo.cs
- FontConverter.cs
- MissingMemberException.cs
- ImageCodecInfo.cs
- GeneralTransform3D.cs
- ClientApiGenerator.cs
- ServiceModelPerformanceCounters.cs
- HtmlInputFile.cs
- VerificationAttribute.cs
- PartialTrustHelpers.cs
- SecurityManager.cs
- HWStack.cs
- DbConnectionOptions.cs
- StructuralCache.cs
- TimeSpanMinutesConverter.cs
- BmpBitmapDecoder.cs
- ColorTransformHelper.cs
- GridViewAutomationPeer.cs
- SiteMapDataSource.cs
- HttpInputStream.cs
- MethodBody.cs
- View.cs
- BooleanFunctions.cs
- GetUserPreferenceRequest.cs
- GroupDescription.cs
- WorkflowDebuggerSteppingAttribute.cs
- SelectionEditor.cs
- UnaryNode.cs
- BitmapPalette.cs
- CodeAttributeDeclarationCollection.cs
- SurrogateEncoder.cs
- TabControlCancelEvent.cs
- Sorting.cs
- Socket.cs
- XappLauncher.cs
- ObjectSelectorEditor.cs
- RegexWriter.cs
- DBConnectionString.cs
- BaseTemplateBuildProvider.cs
- WebPartMinimizeVerb.cs
- WhereQueryOperator.cs
- ExecutionEngineException.cs
- ControlHelper.cs
- TransactionWaitAsyncResult.cs
- httpserverutility.cs
- Operand.cs
- ValidatingPropertiesEventArgs.cs
- AlternateView.cs
- Int32KeyFrameCollection.cs
- PageCodeDomTreeGenerator.cs
- CreateParams.cs
- MasterPageParser.cs
- Compiler.cs
- RadialGradientBrush.cs
- PictureBoxDesigner.cs
- MessageSecurityTokenVersion.cs
- SmtpDigestAuthenticationModule.cs
- WinEventQueueItem.cs
- ToolStripEditorManager.cs
- EventMappingSettings.cs
- RuleInfoComparer.cs
- ChameleonKey.cs
- BamlRecordWriter.cs
- PersonalizationProviderHelper.cs
- TableLayoutSettings.cs
- BypassElementCollection.cs
- LayoutSettings.cs
- WebPartCloseVerb.cs