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
- ColorAnimationBase.cs
- TreeView.cs
- SqlException.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- FixedFlowMap.cs
- OutOfMemoryException.cs
- CompilationPass2TaskInternal.cs
- EntityDataSourceEntityTypeFilterItem.cs
- ProfileProvider.cs
- Menu.cs
- LinqToSqlWrapper.cs
- ComponentEditorForm.cs
- SortFieldComparer.cs
- CheckBoxAutomationPeer.cs
- XmlNotation.cs
- CqlLexer.cs
- UpnEndpointIdentity.cs
- QueryInterceptorAttribute.cs
- WindowsStartMenu.cs
- HitTestParameters3D.cs
- arclist.cs
- CheckBox.cs
- DefaultPropertiesToSend.cs
- ToolBar.cs
- HitTestParameters3D.cs
- CrossAppDomainChannel.cs
- CodeExpressionCollection.cs
- RTLAwareMessageBox.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- WindowsScroll.cs
- Root.cs
- DataColumnChangeEvent.cs
- KeyValuePair.cs
- IndividualDeviceConfig.cs
- MethodBuilder.cs
- HierarchicalDataSourceDesigner.cs
- SettingsPropertyIsReadOnlyException.cs
- SchemaHelper.cs
- MessagingDescriptionAttribute.cs
- CharUnicodeInfo.cs
- PinnedBufferMemoryStream.cs
- WaitHandle.cs
- SafeNativeMethodsMilCoreApi.cs
- DiscoveryDocumentLinksPattern.cs
- HtmlInputImage.cs
- StoreAnnotationsMap.cs
- DataGridViewHitTestInfo.cs
- CounterCreationDataConverter.cs
- AmbientLight.cs
- Label.cs
- ThrowHelper.cs
- RequestCachingSection.cs
- FixedSOMContainer.cs
- StrongName.cs
- SoapSchemaMember.cs
- KeyEventArgs.cs
- XmlEncodedRawTextWriter.cs
- GridViewRow.cs
- ListViewItem.cs
- FrameworkContentElement.cs
- PartialArray.cs
- BulletedListEventArgs.cs
- PropertyFilterAttribute.cs
- SqlDuplicator.cs
- MergeFilterQuery.cs
- MulticastNotSupportedException.cs
- DataServiceRequestOfT.cs
- RoutedEventConverter.cs
- XsdValidatingReader.cs
- MulticastDelegate.cs
- Delegate.cs
- XmlEncodedRawTextWriter.cs
- DeflateEmulationStream.cs
- RuntimeConfigLKG.cs
- LocatorGroup.cs
- PropertyCondition.cs
- SpecialFolderEnumConverter.cs
- SiteMapProvider.cs
- CapabilitiesState.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- TypeExtensions.cs
- HTMLTextWriter.cs
- TransactionManager.cs
- RelationshipDetailsCollection.cs
- NonVisualControlAttribute.cs
- EncryptedPackage.cs
- MbpInfo.cs
- JoinCqlBlock.cs
- WindowsComboBox.cs
- X509SecurityTokenProvider.cs
- Keywords.cs
- ItemType.cs
- EmptyImpersonationContext.cs
- CollectionViewSource.cs
- XPathEmptyIterator.cs
- ThreadPool.cs
- DoubleCollectionConverter.cs
- PointHitTestResult.cs
- BindingBase.cs
- RuleRef.cs