Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / MS / Internal / AppModel / RequestStatusBarUpdateEventArgs.cs / 1 / 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. //---------------------------------------------------------------------------- // 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
- DataRelationCollection.cs
- CommandSet.cs
- TemplatePagerField.cs
- UInt32Storage.cs
- BezierSegment.cs
- XmlIlVisitor.cs
- SafeProcessHandle.cs
- BasePattern.cs
- StartUpEventArgs.cs
- ToolStripSettings.cs
- NameSpaceEvent.cs
- Annotation.cs
- EncoderReplacementFallback.cs
- MDIClient.cs
- ParameterToken.cs
- DynamicILGenerator.cs
- IndicFontClient.cs
- ExpanderAutomationPeer.cs
- Brush.cs
- Animatable.cs
- FileNotFoundException.cs
- OneOfElement.cs
- GlyphRun.cs
- AssemblyHash.cs
- ResourceManager.cs
- Bits.cs
- ImageAutomationPeer.cs
- Journal.cs
- DebugView.cs
- DataSourceGeneratorException.cs
- DesignerExtenders.cs
- AsyncDataRequest.cs
- LineBreakRecord.cs
- IResourceProvider.cs
- WebPartUserCapability.cs
- WebException.cs
- XmlDictionaryReaderQuotas.cs
- RenderTargetBitmap.cs
- SqlCommandSet.cs
- OdbcConnectionString.cs
- HostProtectionPermission.cs
- AttachmentCollection.cs
- LogEntryUtils.cs
- MatrixTransform3D.cs
- Type.cs
- Constraint.cs
- HttpApplicationFactory.cs
- OrderedEnumerableRowCollection.cs
- ConnectionProviderAttribute.cs
- PersonalizationDictionary.cs
- MessageQueuePermissionEntry.cs
- ExpressionBinding.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- FixedPageAutomationPeer.cs
- InternalConfigRoot.cs
- OdbcConnectionOpen.cs
- SqlProviderServices.cs
- SqlRowUpdatedEvent.cs
- StreamSecurityUpgradeAcceptor.cs
- TableSectionStyle.cs
- SystemResources.cs
- View.cs
- CodeSnippetTypeMember.cs
- clipboard.cs
- PopupEventArgs.cs
- BuildProviderAppliesToAttribute.cs
- SudsParser.cs
- CursorEditor.cs
- ScriptResourceHandler.cs
- CounterCreationDataCollection.cs
- MenuItem.cs
- GeneralTransformCollection.cs
- DocumentPage.cs
- securitycriticaldata.cs
- WebRequestModuleElementCollection.cs
- DocumentCollection.cs
- RegexMatch.cs
- DataGridCellClipboardEventArgs.cs
- CounterSample.cs
- DoubleKeyFrameCollection.cs
- Label.cs
- StatusStrip.cs
- Geometry3D.cs
- TextReader.cs
- Rect3D.cs
- FragmentNavigationEventArgs.cs
- Gdiplus.cs
- BamlTreeMap.cs
- ToolStripManager.cs
- WsdlInspector.cs
- InkCanvasFeedbackAdorner.cs
- ZeroOpNode.cs
- ZipIORawDataFileBlock.cs
- SqlBulkCopyColumnMappingCollection.cs
- QuaternionRotation3D.cs
- InvalidContentTypeException.cs
- ResXResourceSet.cs
- XmlNamespaceManager.cs
- PropertyInfo.cs
- TableLayoutCellPaintEventArgs.cs