Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / ResourceReferenceKeyNotFoundException.cs / 1 / ResourceReferenceKeyNotFoundException.cs
//---------------------------------------------------------------------------- // // File: ResourceReferenceExpression.cs // // Description: // A resource could not be found // // Copyright (C) 2005 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Runtime.Serialization; using System.Security; using System.Security.Permissions; namespace System.Windows { ///Exception class for resource reference [Serializable] public class ResourceReferenceKeyNotFoundException: InvalidOperationException { ////// Constructor /// public ResourceReferenceKeyNotFoundException() { _resourceKey = null; } ////// Constructor /// public ResourceReferenceKeyNotFoundException(string message, object resourceKey) : base(message) { _resourceKey = resourceKey; } ////// Constructor (required for Xml web service) /// protected ResourceReferenceKeyNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) { _resourceKey = info.GetValue("Key", typeof(object)); } ////// LineNumber that the exception occured on. /// public object Key { get { return _resourceKey; } } ////// Populates a SerializationInfo with the data needed to serialize the target object. /// /// /// The SerializationInfo to populate with data. /// /// /// The destination for this serialization. /// ////// Critical: calls Exception.GetObjectData which LinkDemands /// PublicOK: a demand exists here /// [SecurityCritical] [SecurityPermissionAttribute(SecurityAction.Demand,SerializationFormatter=true)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); info.AddValue("Key", _resourceKey); } private object _resourceKey; } } // 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
- SmiRecordBuffer.cs
- GridViewPageEventArgs.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- ForwardPositionQuery.cs
- ResourceCategoryAttribute.cs
- shaperfactoryquerycacheentry.cs
- UrlPath.cs
- MimeTypeAttribute.cs
- OdbcConnectionOpen.cs
- ObsoleteAttribute.cs
- RelationshipSet.cs
- ConfigXmlAttribute.cs
- ViewLoader.cs
- IsolatedStorageFileStream.cs
- EventPropertyMap.cs
- SQLDoubleStorage.cs
- SingleTagSectionHandler.cs
- TextSpanModifier.cs
- SimpleMailWebEventProvider.cs
- Pair.cs
- BuildProvidersCompiler.cs
- Parser.cs
- InstallerTypeAttribute.cs
- ContextStaticAttribute.cs
- BaseTemplatedMobileComponentEditor.cs
- VBIdentifierDesigner.xaml.cs
- webeventbuffer.cs
- ScriptingJsonSerializationSection.cs
- ExpressionEditor.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- CodeGenerator.cs
- AnimationClock.cs
- AppDomainUnloadedException.cs
- ParameterElement.cs
- DesignerHelpers.cs
- ResetableIterator.cs
- ServiceDescriptionReflector.cs
- ExpressionBindingCollection.cs
- HandleExceptionArgs.cs
- ProfileProvider.cs
- WorkflowRuntimeSection.cs
- AttachedPropertyInfo.cs
- StrongNameKeyPair.cs
- _ProxyRegBlob.cs
- _LoggingObject.cs
- SystemWebSectionGroup.cs
- TdsValueSetter.cs
- CheckBox.cs
- SafeEventLogReadHandle.cs
- LockCookie.cs
- ApplicationServiceManager.cs
- OutputCacheSettingsSection.cs
- StrongName.cs
- ResourceReader.cs
- WebErrorHandler.cs
- AutomationPattern.cs
- WebPartDesigner.cs
- TypeExtensionSerializer.cs
- QilStrConcat.cs
- SqlReorderer.cs
- mactripleDES.cs
- Aggregates.cs
- TTSVoice.cs
- SqlGatherProducedAliases.cs
- ReplyAdapterChannelListener.cs
- FlowPosition.cs
- BamlStream.cs
- MenuCommands.cs
- PropertyEmitterBase.cs
- SecurityMode.cs
- ExpandedProjectionNode.cs
- ApplicationSecurityManager.cs
- D3DImage.cs
- Help.cs
- CdpEqualityComparer.cs
- DeviceSpecificChoice.cs
- FlowDocument.cs
- SchemaCollectionPreprocessor.cs
- XsltArgumentList.cs
- SuppressMessageAttribute.cs
- ParseElement.cs
- PagerSettings.cs
- WindowsStatic.cs
- UdpMessageProperty.cs
- FontEditor.cs
- COM2PictureConverter.cs
- WindowsSolidBrush.cs
- EventLogEntry.cs
- CallbackDebugBehavior.cs
- TextElement.cs
- _ShellExpression.cs
- SocketCache.cs
- ListSourceHelper.cs
- TextCollapsingProperties.cs
- DataServiceException.cs
- UnmanagedBitmapWrapper.cs
- TransformCollection.cs
- ListDictionaryInternal.cs
- ComponentDesigner.cs
- XomlSerializationHelpers.cs