Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- HtmlHistory.cs
- HtmlToClrEventProxy.cs
- TextEditorSelection.cs
- CodeParameterDeclarationExpression.cs
- TemplateBamlRecordReader.cs
- KeyPullup.cs
- X509Certificate2Collection.cs
- BitmapEffectvisualstate.cs
- BasePattern.cs
- QueueProcessor.cs
- WebPageTraceListener.cs
- ProfessionalColorTable.cs
- StrokeFIndices.cs
- ExpandableObjectConverter.cs
- PageEventArgs.cs
- SimpleBitVector32.cs
- WmlFormAdapter.cs
- OSEnvironmentHelper.cs
- RenamedEventArgs.cs
- ToolStripDropDownItem.cs
- IMembershipProvider.cs
- ExeContext.cs
- WCFServiceClientProxyGenerator.cs
- CodeTypeDeclarationCollection.cs
- DeclarationUpdate.cs
- PerformanceCounterPermissionEntry.cs
- ScrollPattern.cs
- SettingsBase.cs
- PropertySegmentSerializationProvider.cs
- RichTextBoxDesigner.cs
- Config.cs
- ComplexTypeEmitter.cs
- AssemblyResourceLoader.cs
- ActivityWithResultWrapper.cs
- DataGridViewElement.cs
- PersistChildrenAttribute.cs
- CompiledQueryCacheEntry.cs
- RoutedEventArgs.cs
- Graphics.cs
- SystemWebExtensionsSectionGroup.cs
- TraceRecord.cs
- CqlLexerHelpers.cs
- BaseComponentEditor.cs
- BinaryFormatterSinks.cs
- SharedUtils.cs
- AuthenticationModuleElementCollection.cs
- SystemFonts.cs
- TextElement.cs
- HashUtility.cs
- Attributes.cs
- XmlWriterTraceListener.cs
- SafeMarshalContext.cs
- SafeSystemMetrics.cs
- WindowsScrollBarBits.cs
- ChannelBinding.cs
- ListViewInsertedEventArgs.cs
- ScrollData.cs
- Helpers.cs
- WebPartDisplayMode.cs
- LabelEditEvent.cs
- ipaddressinformationcollection.cs
- Model3D.cs
- HttpListenerException.cs
- UnsafeNativeMethods.cs
- ParseChildrenAsPropertiesAttribute.cs
- AssemblyResourceLoader.cs
- ReflectionHelper.cs
- HashSetEqualityComparer.cs
- XmlDocumentType.cs
- RelationshipType.cs
- TiffBitmapEncoder.cs
- TextRangeEditTables.cs
- AuthenticationException.cs
- TraceSection.cs
- MethodBuilderInstantiation.cs
- DebugView.cs
- X509ThumbprintKeyIdentifierClause.cs
- PersonalizationAdministration.cs
- securitycriticaldataformultiplegetandset.cs
- ExtendedProtectionPolicyElement.cs
- WindowsRichEditRange.cs
- RegexStringValidator.cs
- _FtpControlStream.cs
- TableLayoutCellPaintEventArgs.cs
- ColorContext.cs
- DataGridViewCellValueEventArgs.cs
- DataColumnCollection.cs
- CqlLexer.cs
- EntityAdapter.cs
- CallSiteHelpers.cs
- Pair.cs
- ReadWriteObjectLock.cs
- XhtmlBasicLiteralTextAdapter.cs
- Timer.cs
- ViewGenerator.cs
- Figure.cs
- XamlWrapperReaders.cs
- RectangleGeometry.cs
- SessionIDManager.cs
- UserValidatedEventArgs.cs