Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / MemberAccessException.cs / 1 / MemberAccessException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //////////////////////////////////////////////////////////////////////////////// // MemberAccessException // Thrown when we try accessing a member that we cannot // access, due to it being removed, private or something similar. //////////////////////////////////////////////////////////////////////////////// namespace System { using System; using System.Runtime.Serialization; // The MemberAccessException is thrown when trying to access a class // member fails. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class MemberAccessException : SystemException { // Creates a new MemberAccessException with its message string set to // the empty string, its HRESULT set to COR_E_MEMBERACCESS, // and its ExceptionInfo reference set to null. public MemberAccessException() : base(Environment.GetResourceString("Arg_AccessException")) { SetErrorCode(__HResults.COR_E_MEMBERACCESS); } // Creates a new MemberAccessException with its message string set to // message, its HRESULT set to COR_E_ACCESS, // and its ExceptionInfo reference set to null. // public MemberAccessException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MEMBERACCESS); } public MemberAccessException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MEMBERACCESS); } protected MemberAccessException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //////////////////////////////////////////////////////////////////////////////// // MemberAccessException // Thrown when we try accessing a member that we cannot // access, due to it being removed, private or something similar. //////////////////////////////////////////////////////////////////////////////// namespace System { using System; using System.Runtime.Serialization; // The MemberAccessException is thrown when trying to access a class // member fails. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class MemberAccessException : SystemException { // Creates a new MemberAccessException with its message string set to // the empty string, its HRESULT set to COR_E_MEMBERACCESS, // and its ExceptionInfo reference set to null. public MemberAccessException() : base(Environment.GetResourceString("Arg_AccessException")) { SetErrorCode(__HResults.COR_E_MEMBERACCESS); } // Creates a new MemberAccessException with its message string set to // message, its HRESULT set to COR_E_ACCESS, // and its ExceptionInfo reference set to null. // public MemberAccessException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MEMBERACCESS); } public MemberAccessException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MEMBERACCESS); } protected MemberAccessException(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
- UrlPropertyAttribute.cs
- MediaContextNotificationWindow.cs
- IsolatedStorageFile.cs
- JpegBitmapEncoder.cs
- ParameterCollection.cs
- Int32Converter.cs
- State.cs
- LookupTables.cs
- DelegatedStream.cs
- DynamicRouteExpression.cs
- SchemaNotation.cs
- SecurityPermission.cs
- ModelTreeManager.cs
- MetaDataInfo.cs
- CryptoProvider.cs
- CachedCompositeFamily.cs
- InputScope.cs
- Native.cs
- XmlTextAttribute.cs
- FileFormatException.cs
- InternalBase.cs
- SynchronizedDispatch.cs
- ThreadPoolTaskScheduler.cs
- GradientBrush.cs
- ListManagerBindingsCollection.cs
- PathSegmentCollection.cs
- MulticastDelegate.cs
- ParameterCollection.cs
- BinaryObjectWriter.cs
- DesignTimeTemplateParser.cs
- SQLChars.cs
- ResponseStream.cs
- SystemInformation.cs
- TransformerConfigurationWizardBase.cs
- ImageInfo.cs
- TrustLevel.cs
- WebDescriptionAttribute.cs
- ViewManager.cs
- TextRangeBase.cs
- GeneratedView.cs
- FontCacheLogic.cs
- ConfigurationValidatorBase.cs
- ClientFormsIdentity.cs
- ContainerSelectorActiveEvent.cs
- Property.cs
- AlphaSortedEnumConverter.cs
- FilterableAttribute.cs
- VectorValueSerializer.cs
- XmlSerializer.cs
- SemanticBasicElement.cs
- JsonCollectionDataContract.cs
- Solver.cs
- BaseValidatorDesigner.cs
- SQLRoleProvider.cs
- FileFormatException.cs
- NavigationWindow.cs
- TextViewDesigner.cs
- HashAlgorithm.cs
- AssemblyBuilderData.cs
- NativeMethods.cs
- SqlInternalConnectionTds.cs
- DataSourceCache.cs
- TableParaClient.cs
- VarRemapper.cs
- Transform3D.cs
- TypeSystem.cs
- GZipStream.cs
- XamlFxTrace.cs
- XmlSchemaParticle.cs
- UnionQueryOperator.cs
- WindowsTitleBar.cs
- XamlToRtfParser.cs
- RayMeshGeometry3DHitTestResult.cs
- ServiceOperation.cs
- ProxyWebPartConnectionCollection.cs
- XamlReaderHelper.cs
- FontSizeConverter.cs
- ClientRuntimeConfig.cs
- SelectorItemAutomationPeer.cs
- Evidence.cs
- UserInitiatedNavigationPermission.cs
- TraceProvider.cs
- AppDomainShutdownMonitor.cs
- HttpGetClientProtocol.cs
- LifetimeServices.cs
- datacache.cs
- FormsAuthenticationModule.cs
- EditorZone.cs
- BitmapSource.cs
- RectAnimationBase.cs
- SiteOfOriginPart.cs
- TdsRecordBufferSetter.cs
- XmlAnyElementAttributes.cs
- ImageMapEventArgs.cs
- AndCondition.cs
- CertificateManager.cs
- CompositeScriptReferenceEventArgs.cs
- LogFlushAsyncResult.cs
- MethodBuilder.cs
- Stroke2.cs