Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListView.cs
- StrongNameKeyPair.cs
- NumberFunctions.cs
- DataObjectFieldAttribute.cs
- Point3DCollectionConverter.cs
- WebPartConnection.cs
- RepeaterItem.cs
- Int32EqualityComparer.cs
- OperationFormatter.cs
- DataGridViewCellEventArgs.cs
- ProtectedUri.cs
- PolyLineSegmentFigureLogic.cs
- _ListenerResponseStream.cs
- TransactedReceiveScope.cs
- PersonalizationEntry.cs
- XmlSchemaDocumentation.cs
- StructuredTypeEmitter.cs
- ResourceExpressionBuilder.cs
- Closure.cs
- AutomationElementCollection.cs
- ConvertBinder.cs
- _AuthenticationState.cs
- NativeMethods.cs
- WindowsGraphics.cs
- DbConnectionHelper.cs
- PackagingUtilities.cs
- ContentType.cs
- _NTAuthentication.cs
- XmlBinaryReader.cs
- XmlSortKey.cs
- WithParamAction.cs
- TransformValueSerializer.cs
- PassportIdentity.cs
- TextEditor.cs
- LiteralDesigner.cs
- MasterPageCodeDomTreeGenerator.cs
- SimpleRecyclingCache.cs
- CatalogPartChrome.cs
- RectValueSerializer.cs
- SelectionItemPatternIdentifiers.cs
- ReadOnlyDataSource.cs
- IndexingContentUnit.cs
- ListView.cs
- DocumentViewerBase.cs
- TextBlock.cs
- SqlRowUpdatingEvent.cs
- ButtonAutomationPeer.cs
- ApplicationInterop.cs
- PrimitiveXmlSerializers.cs
- ToolStripContentPanel.cs
- TreeNode.cs
- TextEditorMouse.cs
- InertiaRotationBehavior.cs
- FileSystemEventArgs.cs
- BamlResourceDeserializer.cs
- StorageEndPropertyMapping.cs
- GenericTypeParameterBuilder.cs
- CompoundFileStorageReference.cs
- ControlParameter.cs
- FixUpCollection.cs
- ObjectListItemCollection.cs
- EditingCommands.cs
- MetadataArtifactLoaderCompositeFile.cs
- WebUtil.cs
- AppDomainProtocolHandler.cs
- RegexStringValidatorAttribute.cs
- cache.cs
- InternalControlCollection.cs
- processwaithandle.cs
- HttpTransportBindingElement.cs
- SchemaEntity.cs
- ConnectivityStatus.cs
- NumberSubstitution.cs
- UrlMappingsSection.cs
- ServiceContractDetailViewControl.cs
- SourceSwitch.cs
- DurableEnlistmentState.cs
- ExeContext.cs
- ChtmlFormAdapter.cs
- SimpleModelProvider.cs
- DefaultTextStore.cs
- TemplateModeChangedEventArgs.cs
- WorkflowDebuggerSteppingAttribute.cs
- Config.cs
- RedistVersionInfo.cs
- FormatterServices.cs
- OutputScope.cs
- ColorConverter.cs
- CalendarAutomationPeer.cs
- VectorCollectionValueSerializer.cs
- DrawingBrush.cs
- InvokeSchedule.cs
- DateTimeOffset.cs
- DynamicValueConverter.cs
- Literal.cs
- TreeView.cs
- FixedNode.cs
- AxHostDesigner.cs
- AttributeEmitter.cs
- SchemaConstraints.cs