Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DirectionalLight.cs
- HatchBrush.cs
- MissingMemberException.cs
- WindowsScrollBarBits.cs
- PagesChangedEventArgs.cs
- DocumentOutline.cs
- XsltArgumentList.cs
- XmlDataLoader.cs
- RemotingAttributes.cs
- BufferModeSettings.cs
- WebPartConnectionsConnectVerb.cs
- SecurityPolicySection.cs
- CompositeScriptReference.cs
- DataGridTablesFactory.cs
- ScrollChrome.cs
- PageRanges.cs
- XPathAncestorIterator.cs
- TcpServerChannel.cs
- ItemPager.cs
- XmlSequenceWriter.cs
- Command.cs
- MetadataException.cs
- sqlmetadatafactory.cs
- TypeConverterHelper.cs
- ButtonFieldBase.cs
- HostingEnvironmentException.cs
- CommandID.cs
- PartitionedDataSource.cs
- HttpListenerResponse.cs
- ItemsChangedEventArgs.cs
- SmtpNegotiateAuthenticationModule.cs
- CodeMemberMethod.cs
- HasRunnableWorkflowEvent.cs
- InstanceDataCollection.cs
- Calendar.cs
- DoubleLink.cs
- _TimerThread.cs
- ProfileServiceManager.cs
- DiagnosticEventProvider.cs
- TextParagraphView.cs
- IgnoreFlushAndCloseStream.cs
- WebPartDescription.cs
- ReachFixedPageSerializerAsync.cs
- DBPropSet.cs
- PartBasedPackageProperties.cs
- SqlNodeAnnotation.cs
- OleAutBinder.cs
- UInt16.cs
- DataServiceHost.cs
- ListViewPagedDataSource.cs
- RoutedUICommand.cs
- RelationshipDetailsCollection.cs
- EventLogRecord.cs
- OrderablePartitioner.cs
- SubclassTypeValidator.cs
- Facet.cs
- EventMappingSettings.cs
- HttpCapabilitiesBase.cs
- HScrollBar.cs
- TableStyle.cs
- LowerCaseStringConverter.cs
- PointLight.cs
- SettingsPropertyWrongTypeException.cs
- UrlPropertyAttribute.cs
- XmlValidatingReader.cs
- Nullable.cs
- HwndAppCommandInputProvider.cs
- BamlLocalizationDictionary.cs
- ReadWriteObjectLock.cs
- SafeProcessHandle.cs
- BaseConfigurationRecord.cs
- SplayTreeNode.cs
- RsaSecurityTokenParameters.cs
- XmlSchemaAnnotation.cs
- ControlAdapter.cs
- MatchingStyle.cs
- XmlRawWriterWrapper.cs
- CompositeCollectionView.cs
- SqlDataSourceStatusEventArgs.cs
- ActivityDesignerAccessibleObject.cs
- Directory.cs
- BeginSelectCardRequest.cs
- QueryStringParameter.cs
- CheckableControlBaseAdapter.cs
- ElementAction.cs
- Highlights.cs
- DynamicMethod.cs
- FileDialogCustomPlace.cs
- SqlGatherProducedAliases.cs
- SHA384.cs
- DataServiceException.cs
- TextServicesDisplayAttributePropertyRanges.cs
- BinaryObjectReader.cs
- Maps.cs
- InputProcessorProfilesLoader.cs
- WebPartConnectionsConnectVerb.cs
- MediaTimeline.cs
- Listen.cs
- FixedSOMFixedBlock.cs
- DoubleConverter.cs