Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / AppModel / RequestStatusBarUpdateEventArgs.cs / 1305600 / RequestStatusBarUpdateEventArgs.cs
//---------------------------------------------------------------------------- // File: RequestStatusBarUpdateEventArgs.cs // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Net; using System.Windows; using MS.Internal.Utility; using System.Security; namespace MS.Internal.AppModel { internal sealed class RequestSetStatusBarEventArgs : RoutedEventArgs { ////// Text that will be set on the status bar. /// ////// CriticalDataForSet - Arbitrary changes to the status bar text could open up for spoofing attacks. /// private SecurityCriticalDataForSet_text; /// /// Creates a RequestSetStatusBarEventArgs based on a specified string. /// /// Text that will be set on the status bar. ////// Critical - Sets the status bar text; could open up for spoofing attacks. /// [SecurityCritical] internal RequestSetStatusBarEventArgs(string text) : base() { _text.Value = text; base.RoutedEvent = System.Windows.Documents.Hyperlink.RequestSetStatusBarEvent; } ////// Creates a RequestSetStatusBarEventArgs based on a specified URI. /// /// URI that will be set on the status bar after appropriate conversion to text. If null, the status bar will be cleared. ////// Critical - Sets the status bar text; could open up for spoofing attacks. /// [SecurityCritical] internal RequestSetStatusBarEventArgs(Uri targetUri) : base() { if (targetUri == null) _text.Value = String.Empty; else _text.Value = BindUriHelper.UriToString(targetUri); base.RoutedEvent = System.Windows.Documents.Hyperlink.RequestSetStatusBarEvent; } ////// Text that will be set on the status bar. /// internal string Text { get { return _text.Value; } } ////// Request object for clearing the status bar. /// ////// Critical - Calls the critical ctor that allows setting the status bar text. /// TreatAsSafe - We control the input to the status bar (String.Empty). /// The critical stuff is setting the status bar to a URI; we consider clearing the status bar safe. /// internal static RequestSetStatusBarEventArgs Clear { [SecurityCritical, SecurityTreatAsSafe] get { return new RequestSetStatusBarEventArgs(String.Empty); } } } } // 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
- PointCollection.cs
- StylusButton.cs
- IdnMapping.cs
- Queue.cs
- SHA256Managed.cs
- WebPartActionVerb.cs
- ParameterToken.cs
- ToolStripKeyboardHandlingService.cs
- DocumentReference.cs
- xml.cs
- ControlTemplate.cs
- WindowsListBox.cs
- Control.cs
- StorageSetMapping.cs
- RangeBaseAutomationPeer.cs
- DesignerUtility.cs
- XmlNullResolver.cs
- GeometryHitTestResult.cs
- FontStyle.cs
- recordstatefactory.cs
- ResourceDefaultValueAttribute.cs
- AppModelKnownContentFactory.cs
- WebPartMovingEventArgs.cs
- TableCell.cs
- StructuredProperty.cs
- ComponentRenameEvent.cs
- NativeMethodsOther.cs
- SpellerHighlightLayer.cs
- PropertyInfoSet.cs
- Primitive.cs
- ParserStreamGeometryContext.cs
- ToolBarButton.cs
- DiffuseMaterial.cs
- MouseButton.cs
- StylusPointPropertyInfo.cs
- WebPartConnectionsConnectVerb.cs
- TargetParameterCountException.cs
- Nullable.cs
- HttpHeaderCollection.cs
- SortedDictionary.cs
- ExceptionUtil.cs
- ExpandedWrapper.cs
- Hashtable.cs
- DragStartedEventArgs.cs
- EdmMember.cs
- MediaTimeline.cs
- TextParagraphCache.cs
- SByteConverter.cs
- TemplateBindingExtension.cs
- SqlXmlStorage.cs
- CollectionChangeEventArgs.cs
- DropDownList.cs
- WorkflowServiceHostFactory.cs
- DataPointer.cs
- MediaElement.cs
- SafeCancelMibChangeNotify.cs
- TableLayoutColumnStyleCollection.cs
- AuditLogLocation.cs
- ToolStripArrowRenderEventArgs.cs
- AmbientLight.cs
- NTAccount.cs
- CategoryAttribute.cs
- SiteMapProvider.cs
- _ScatterGatherBuffers.cs
- MSHTMLHostUtil.cs
- ColumnProvider.cs
- PropertyGeneratedEventArgs.cs
- RequestCachePolicyConverter.cs
- PagerSettings.cs
- PageRanges.cs
- ByteAnimationBase.cs
- MediaCommands.cs
- SQLInt16.cs
- Invariant.cs
- SmtpClient.cs
- XPathNode.cs
- UnsafeNativeMethods.cs
- DynamicObject.cs
- ProfileGroupSettingsCollection.cs
- DataGrid.cs
- ControlBuilderAttribute.cs
- SchemaObjectWriter.cs
- OpCodes.cs
- TextRangeEditTables.cs
- Track.cs
- ToolStripPanel.cs
- LinkTarget.cs
- ByValueEqualityComparer.cs
- Serializer.cs
- UnmanagedMarshal.cs
- Sentence.cs
- TemplateKeyConverter.cs
- Queue.cs
- OleDbMetaDataFactory.cs
- InvalidFilterCriteriaException.cs
- SqlConnectionPoolGroupProviderInfo.cs
- MimeTypeMapper.cs
- cookieexception.cs
- SchemaImporterExtensionElementCollection.cs
- DbDataAdapter.cs