Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SamlAttribute.cs
- TextProviderWrapper.cs
- NativeMethodsOther.cs
- TraceData.cs
- WebBrowserUriTypeConverter.cs
- UnmanagedBitmapWrapper.cs
- IdentityModelDictionary.cs
- DataViewListener.cs
- ManifestSignedXml.cs
- RegistrationServices.cs
- PathSegmentCollection.cs
- DataGridLengthConverter.cs
- PerfCounterSection.cs
- ProxyAttribute.cs
- RequestCacheValidator.cs
- IPGlobalProperties.cs
- InfoCardSymmetricAlgorithm.cs
- querybuilder.cs
- PropertyValueEditor.cs
- BrowsableAttribute.cs
- Invariant.cs
- DropDownButton.cs
- ListCommandEventArgs.cs
- BoundPropertyEntry.cs
- StorageConditionPropertyMapping.cs
- BufferAllocator.cs
- ColorMap.cs
- AudioBase.cs
- DiagnosticSection.cs
- DataGridViewRow.cs
- CalendarItem.cs
- ToolStripDropDownClosingEventArgs.cs
- COAUTHINFO.cs
- InfoCardAsymmetricCrypto.cs
- FixUp.cs
- MessagePropertyDescription.cs
- SymLanguageType.cs
- CardSpaceSelector.cs
- ToolZone.cs
- OpCodes.cs
- InternalBufferOverflowException.cs
- SafeUserTokenHandle.cs
- EmptyQuery.cs
- TablePatternIdentifiers.cs
- ConfigXmlCDataSection.cs
- ContentPresenter.cs
- TreeSet.cs
- FontStyle.cs
- ProfileGroupSettingsCollection.cs
- NumericUpDownAcceleration.cs
- PaginationProgressEventArgs.cs
- Events.cs
- OdbcReferenceCollection.cs
- SqlCommand.cs
- TabRenderer.cs
- XmlNamespaceDeclarationsAttribute.cs
- DirectoryInfo.cs
- CodeGenerationManager.cs
- BamlVersionHeader.cs
- CodeCompileUnit.cs
- MobileControlsSectionHelper.cs
- StartFileNameEditor.cs
- ImageConverter.cs
- ClientRoleProvider.cs
- Typography.cs
- ProviderConnectionPointCollection.cs
- MemberRelationshipService.cs
- CodeAttributeArgumentCollection.cs
- SystemIPInterfaceStatistics.cs
- RegistrySecurity.cs
- CharacterHit.cs
- WorkflowElementDialog.cs
- BinaryObjectReader.cs
- EdmFunction.cs
- WorkflowRuntimeServiceElement.cs
- CodePropertyReferenceExpression.cs
- TemplateBuilder.cs
- TextEditorSpelling.cs
- LowerCaseStringConverter.cs
- GacUtil.cs
- SettingsContext.cs
- EventLogEntry.cs
- CursorConverter.cs
- StructuredTypeEmitter.cs
- DataException.cs
- FontUnitConverter.cs
- WindowsListViewItem.cs
- SelectionItemProviderWrapper.cs
- ReflectPropertyDescriptor.cs
- LocatorBase.cs
- URIFormatException.cs
- DbProviderSpecificTypePropertyAttribute.cs
- DataControlField.cs
- CompensationHandlingFilter.cs
- CookieHandler.cs
- formatter.cs
- DataStreamFromComStream.cs
- _StreamFramer.cs
- BindingCollection.cs
- DataGridToolTip.cs