Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / TypeAccessException.cs / 1305376 / TypeAccessException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System.Runtime.Serialization; using System.Security; namespace System { // TypeAccessException derives from TypeLoadException rather than MemberAccessException because in // pre-v4 releases of the runtime TypeLoadException was used in lieu of a TypeAccessException. [Serializable] public class TypeAccessException : TypeLoadException { public TypeAccessException() : base(Environment.GetResourceString("Arg_TypeAccessException")) { SetErrorCode(__HResults.COR_E_TYPEACCESS); } public TypeAccessException(string message) : base(message) { SetErrorCode(__HResults.COR_E_TYPEACCESS); } public TypeAccessException(string message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_TYPEACCESS); } protected TypeAccessException(SerializationInfo info, StreamingContext context) : base(info, context) { SetErrorCode(__HResults.COR_E_TYPEACCESS); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System.Runtime.Serialization; using System.Security; namespace System { // TypeAccessException derives from TypeLoadException rather than MemberAccessException because in // pre-v4 releases of the runtime TypeLoadException was used in lieu of a TypeAccessException. [Serializable] public class TypeAccessException : TypeLoadException { public TypeAccessException() : base(Environment.GetResourceString("Arg_TypeAccessException")) { SetErrorCode(__HResults.COR_E_TYPEACCESS); } public TypeAccessException(string message) : base(message) { SetErrorCode(__HResults.COR_E_TYPEACCESS); } public TypeAccessException(string message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_TYPEACCESS); } protected TypeAccessException(SerializationInfo info, StreamingContext context) : base(info, context) { SetErrorCode(__HResults.COR_E_TYPEACCESS); } } } // 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
- FormsAuthenticationCredentials.cs
- OdbcConnection.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- TextParaClient.cs
- DynamicVirtualDiscoSearcher.cs
- EventManager.cs
- InvokeHandlers.cs
- FunctionMappingTranslator.cs
- PerfCounters.cs
- VersionedStreamOwner.cs
- EncoderParameter.cs
- AssemblyCollection.cs
- ActivityBuilderXamlWriter.cs
- PreservationFileReader.cs
- NullRuntimeConfig.cs
- COM2IProvidePropertyBuilderHandler.cs
- EmptyElement.cs
- SoapSchemaMember.cs
- FacetValues.cs
- ExitEventArgs.cs
- TrackingStringDictionary.cs
- TextPointer.cs
- EventDescriptor.cs
- ErrorEventArgs.cs
- PaperSource.cs
- ResXResourceReader.cs
- TimeZone.cs
- GetPageNumberCompletedEventArgs.cs
- UIElement.cs
- InternalControlCollection.cs
- XmlMtomReader.cs
- EffectiveValueEntry.cs
- DesignerGenericWebPart.cs
- DefaultTextStoreTextComposition.cs
- ContainerParagraph.cs
- SaveFileDialogDesigner.cs
- Gdiplus.cs
- SecurityTokenProviderContainer.cs
- RoleGroupCollection.cs
- ResourcesChangeInfo.cs
- Types.cs
- RemoveStoryboard.cs
- Window.cs
- X509SecurityTokenAuthenticator.cs
- DisplayMemberTemplateSelector.cs
- DesignTimeVisibleAttribute.cs
- ProgressBarHighlightConverter.cs
- MSAANativeProvider.cs
- WorkItem.cs
- HyperLinkDesigner.cs
- HybridObjectCache.cs
- JsonQueryStringConverter.cs
- ToggleProviderWrapper.cs
- TileBrush.cs
- codemethodreferenceexpression.cs
- SchemaImporterExtensionsSection.cs
- RadioButtonStandardAdapter.cs
- BamlRecords.cs
- QueueAccessMode.cs
- DispatcherHooks.cs
- WebHttpSecurityModeHelper.cs
- TransactionFlowOption.cs
- QueryExtender.cs
- DependencyPropertyKey.cs
- BinaryConverter.cs
- ConsumerConnectionPoint.cs
- DoubleLinkListEnumerator.cs
- Registry.cs
- ErrorEventArgs.cs
- SerializationAttributes.cs
- TimeSpan.cs
- SizeAnimationBase.cs
- DataServicePagingProviderWrapper.cs
- UnicastIPAddressInformationCollection.cs
- ListViewTableRow.cs
- TextTabProperties.cs
- TraceHandler.cs
- SecurityBindingElementImporter.cs
- sqlinternaltransaction.cs
- Deflater.cs
- DiscoveryMessageProperty.cs
- SBCSCodePageEncoding.cs
- FontStretch.cs
- SourceElementsCollection.cs
- CharacterBuffer.cs
- FileEnumerator.cs
- DataGridViewColumnHeaderCell.cs
- CSharpCodeProvider.cs
- BrowsableAttribute.cs
- PrimitiveCodeDomSerializer.cs
- TimerElapsedEvenArgs.cs
- MetadataExchangeBindings.cs
- PathNode.cs
- DataConnectionHelper.cs
- EllipseGeometry.cs
- SQLBoolean.cs
- MediaPlayerState.cs
- ListParaClient.cs
- DeferrableContentConverter.cs
- LayoutEvent.cs