Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- X509ClientCertificateCredentialsElement.cs
- RoleGroupCollection.cs
- StatusBarAutomationPeer.cs
- SystemDropShadowChrome.cs
- StrokeIntersection.cs
- odbcmetadatacolumnnames.cs
- ContentValidator.cs
- SyndicationDeserializer.cs
- DataControlExtensions.cs
- CommandCollectionEditor.cs
- NetworkInterface.cs
- CollectionChange.cs
- OleDbCommandBuilder.cs
- ElementAtQueryOperator.cs
- DataServiceConfiguration.cs
- PhysicalFontFamily.cs
- XmlDataLoader.cs
- NavigatingCancelEventArgs.cs
- PluralizationService.cs
- BaseConfigurationRecord.cs
- EUCJPEncoding.cs
- ErrorEventArgs.cs
- CatalogZone.cs
- RequiredFieldValidator.cs
- WhitespaceRule.cs
- ObjectDataSourceView.cs
- ToolStripContentPanelRenderEventArgs.cs
- DataControlFieldCell.cs
- DefaultProxySection.cs
- Lease.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- NativeMethods.cs
- DataServiceQueryOfT.cs
- ClassHandlersStore.cs
- ParserStreamGeometryContext.cs
- DefaultTypeArgumentAttribute.cs
- DbMetaDataColumnNames.cs
- WindowsGraphics2.cs
- HttpCookie.cs
- DbProviderManifest.cs
- PerformanceCounterManager.cs
- User.cs
- LookupBindingPropertiesAttribute.cs
- OdbcParameterCollection.cs
- Int32AnimationUsingKeyFrames.cs
- TransactedReceiveData.cs
- ChannelPool.cs
- ImageListStreamer.cs
- ColorMap.cs
- SqlDataSource.cs
- ChannelServices.cs
- Lock.cs
- XmlSchemaCompilationSettings.cs
- SymbolUsageManager.cs
- safemediahandle.cs
- XmlStreamNodeWriter.cs
- ConnectionManagementSection.cs
- Membership.cs
- AssemblyBuilderData.cs
- ResourceReferenceExpression.cs
- MDIControlStrip.cs
- XmlDataSourceView.cs
- StyleBamlRecordReader.cs
- EventManager.cs
- ReadOnlyTernaryTree.cs
- TrustLevel.cs
- ConfigurationManager.cs
- AssemblyBuilder.cs
- WebReferencesBuildProvider.cs
- TileBrush.cs
- EntitySet.cs
- UnionExpr.cs
- ProxyAttribute.cs
- StrongTypingException.cs
- MSG.cs
- DES.cs
- CheckBox.cs
- SocketInformation.cs
- ScriptModule.cs
- HtmlCommandAdapter.cs
- BuildProviderAppliesToAttribute.cs
- ToolStripItemClickedEventArgs.cs
- ComNativeDescriptor.cs
- TypeValidationEventArgs.cs
- RequestQueue.cs
- HtmlUtf8RawTextWriter.cs
- DataViewSetting.cs
- WmpBitmapDecoder.cs
- SelectionProcessor.cs
- UriParserTemplates.cs
- IdleTimeoutMonitor.cs
- DependencyObjectPropertyDescriptor.cs
- ParseChildrenAsPropertiesAttribute.cs
- CancellationToken.cs
- LayoutManager.cs
- DeclarationUpdate.cs
- DataGridViewButtonCell.cs
- WebPartChrome.cs
- AssemblyUtil.cs
- ActivityInstance.cs