Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WorkBatch.cs
- Matrix.cs
- BindingList.cs
- AssemblyAttributesGoHere.cs
- HtmlInputSubmit.cs
- TypeSystem.cs
- RepeaterDataBoundAdapter.cs
- CodeMemberField.cs
- CommentAction.cs
- FormViewCommandEventArgs.cs
- GridViewColumn.cs
- SqlCachedBuffer.cs
- _ScatterGatherBuffers.cs
- Math.cs
- FileSystemInfo.cs
- DbProviderFactories.cs
- Journal.cs
- ThreadStartException.cs
- WhiteSpaceTrimStringConverter.cs
- JournalNavigationScope.cs
- XmlAttributes.cs
- XmlCollation.cs
- Types.cs
- ZipIOFileItemStream.cs
- OLEDB_Util.cs
- InputBindingCollection.cs
- ToolStripSplitStackLayout.cs
- UserNameSecurityTokenProvider.cs
- StandardCommands.cs
- FileAuthorizationModule.cs
- Size.cs
- BindingWorker.cs
- FileClassifier.cs
- InputLanguageSource.cs
- Identifier.cs
- TabItemWrapperAutomationPeer.cs
- WriterOutput.cs
- Tuple.cs
- TextAdaptor.cs
- RegexWriter.cs
- AssertFilter.cs
- CompoundFileReference.cs
- Pair.cs
- WhitespaceRuleLookup.cs
- ListViewDataItem.cs
- AuthenticatedStream.cs
- WebControlsSection.cs
- MatchSingleFxEngineOpcode.cs
- Stream.cs
- SystemException.cs
- Animatable.cs
- DocumentOrderQuery.cs
- SqlBuffer.cs
- NamespaceCollection.cs
- TreeNodeStyleCollection.cs
- WebPageTraceListener.cs
- BigIntegerStorage.cs
- BindingFormattingDialog.cs
- ConstraintStruct.cs
- RowBinding.cs
- ApplicationProxyInternal.cs
- ReflectionUtil.cs
- TransactionScope.cs
- InvalidEnumArgumentException.cs
- DesignerCapabilities.cs
- ThicknessAnimationUsingKeyFrames.cs
- nulltextnavigator.cs
- TransformProviderWrapper.cs
- DataGridViewComboBoxEditingControl.cs
- ObjectCloneHelper.cs
- DrawListViewItemEventArgs.cs
- LinkLabelLinkClickedEvent.cs
- GiveFeedbackEvent.cs
- MarkedHighlightComponent.cs
- SimplePropertyEntry.cs
- OrderedDictionaryStateHelper.cs
- NavigatingCancelEventArgs.cs
- PointConverter.cs
- ApplicationServicesHostFactory.cs
- GenericAuthenticationEventArgs.cs
- CopyNodeSetAction.cs
- DataSourceXmlTextReader.cs
- BrowserInteropHelper.cs
- DocumentCollection.cs
- WorkflowControlClient.cs
- ContextMenu.cs
- ISAPIRuntime.cs
- PathGeometry.cs
- TimelineCollection.cs
- EncoderParameter.cs
- DataRowCollection.cs
- SetterBase.cs
- XmlChoiceIdentifierAttribute.cs
- DoubleStorage.cs
- GregorianCalendarHelper.cs
- XhtmlBasicSelectionListAdapter.cs
- SafeRightsManagementEnvironmentHandle.cs
- StylusPointPropertyId.cs
- StringBlob.cs
- OdbcParameter.cs