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
- UIntPtr.cs
- WebPartUtil.cs
- GraphicsContext.cs
- StaticResourceExtension.cs
- KeyBinding.cs
- SQLUtility.cs
- StreamInfo.cs
- ConstraintStruct.cs
- Pts.cs
- StructuredTypeInfo.cs
- EntityDataSourceValidationException.cs
- HostedElements.cs
- HwndSourceKeyboardInputSite.cs
- EntityStoreSchemaGenerator.cs
- HtmlProps.cs
- XmlSchemaSimpleTypeUnion.cs
- RangeBaseAutomationPeer.cs
- HttpListenerTimeoutManager.cs
- CorrelationQuery.cs
- EventManager.cs
- UserPreferenceChangedEventArgs.cs
- StrongNamePublicKeyBlob.cs
- UserControl.cs
- WebBrowserUriTypeConverter.cs
- QueryOpeningEnumerator.cs
- DataGridViewComboBoxColumn.cs
- RestHandler.cs
- UnknownBitmapDecoder.cs
- DynamicDocumentPaginator.cs
- KnownTypesHelper.cs
- SerializableAttribute.cs
- EditorOptionAttribute.cs
- ScrollProperties.cs
- DataTrigger.cs
- ConfigurationStrings.cs
- TracingConnectionListener.cs
- FixedSOMGroup.cs
- TabItemWrapperAutomationPeer.cs
- MultiBinding.cs
- AssociationTypeEmitter.cs
- SourceInterpreter.cs
- ToolStripMenuItemDesigner.cs
- TypedRowHandler.cs
- RegexStringValidatorAttribute.cs
- RegistrationServices.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- Matrix3DValueSerializer.cs
- Content.cs
- TextPenaltyModule.cs
- CriticalHandle.cs
- SlipBehavior.cs
- FilePresentation.cs
- HttpPostedFile.cs
- QilNode.cs
- FormViewUpdateEventArgs.cs
- Buffer.cs
- TextProviderWrapper.cs
- BufferBuilder.cs
- DnsEndPoint.cs
- HttpsHostedTransportConfiguration.cs
- wgx_render.cs
- Expressions.cs
- TreeNodeCollection.cs
- UnmanagedMemoryStreamWrapper.cs
- DropShadowBitmapEffect.cs
- EntityDataSourceSelectingEventArgs.cs
- IApplicationTrustManager.cs
- XPathScanner.cs
- ControlParameter.cs
- COM2Properties.cs
- AccessedThroughPropertyAttribute.cs
- MasterPageParser.cs
- DocumentPageView.cs
- CodeCompiler.cs
- SqlTrackingService.cs
- xsdvalidator.cs
- TextDecoration.cs
- StrokeSerializer.cs
- ContentDisposition.cs
- ReaderOutput.cs
- Graphics.cs
- WindowCollection.cs
- LazyLoadBehavior.cs
- ConditionedDesigner.cs
- DBAsyncResult.cs
- InputGestureCollection.cs
- ListContractAdapter.cs
- NonVisualControlAttribute.cs
- OrderablePartitioner.cs
- GroupItem.cs
- UnsafeNativeMethods.cs
- DesignerActionUIService.cs
- SapiInterop.cs
- EntityKey.cs
- configsystem.cs
- XNameTypeConverter.cs
- ReaderWriterLockSlim.cs
- MediaTimeline.cs
- WebPartZoneBaseDesigner.cs
- GenericUriParser.cs