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
- TextContainerHelper.cs
- InputBinding.cs
- SamlAssertionKeyIdentifierClause.cs
- TextElementAutomationPeer.cs
- NonBatchDirectoryCompiler.cs
- EntityUtil.cs
- DataGridViewTopLeftHeaderCell.cs
- TextTreeNode.cs
- prompt.cs
- TypeInfo.cs
- WebConfigurationHostFileChange.cs
- DispatcherEventArgs.cs
- ConsoleKeyInfo.cs
- BasicCommandTreeVisitor.cs
- Int32RectValueSerializer.cs
- WorkflowTransactionService.cs
- UpdateException.cs
- EdmToObjectNamespaceMap.cs
- HttpDictionary.cs
- WinCategoryAttribute.cs
- Vector.cs
- FaultPropagationQuery.cs
- WebServiceFaultDesigner.cs
- KeyFrames.cs
- CheckBoxPopupAdapter.cs
- Cursor.cs
- SystemInfo.cs
- ProjectionPath.cs
- AddInPipelineAttributes.cs
- MapPathBasedVirtualPathProvider.cs
- WpfXamlMember.cs
- Identifier.cs
- RawKeyboardInputReport.cs
- COM2ComponentEditor.cs
- CheckBox.cs
- IMembershipProvider.cs
- WinInetCache.cs
- SafeCryptoHandles.cs
- RadioButtonList.cs
- WindowsStartMenu.cs
- MutexSecurity.cs
- DrawListViewColumnHeaderEventArgs.cs
- Misc.cs
- XmlMapping.cs
- WeakReadOnlyCollection.cs
- ParserStreamGeometryContext.cs
- OperatingSystem.cs
- ExpressionNormalizer.cs
- CallInfo.cs
- hresults.cs
- CngAlgorithmGroup.cs
- TypeUsageBuilder.cs
- ArrangedElement.cs
- CustomPopupPlacement.cs
- TemplatePagerField.cs
- IntegerValidatorAttribute.cs
- RadioButtonPopupAdapter.cs
- _RegBlobWebProxyDataBuilder.cs
- ScriptControlManager.cs
- TemplateField.cs
- FreezableDefaultValueFactory.cs
- LoginUtil.cs
- EditingCommands.cs
- WebHeaderCollection.cs
- CharUnicodeInfo.cs
- DoubleLinkListEnumerator.cs
- login.cs
- Convert.cs
- ZipIOModeEnforcingStream.cs
- Drawing.cs
- DataGridViewCheckBoxColumn.cs
- AssertSection.cs
- ParentUndoUnit.cs
- SnapLine.cs
- TypeNameHelper.cs
- DefaultPrintController.cs
- ConsumerConnectionPoint.cs
- StylusOverProperty.cs
- Predicate.cs
- EditCommandColumn.cs
- XmlSerializationWriter.cs
- DefaultShape.cs
- MessageFilter.cs
- SevenBitStream.cs
- ChunkedMemoryStream.cs
- FixedLineResult.cs
- TraceListener.cs
- QilDataSource.cs
- WmpBitmapEncoder.cs
- SamlAction.cs
- TreeBuilderXamlTranslator.cs
- HttpApplication.cs
- Solver.cs
- NativeMethods.cs
- ManagedWndProcTracker.cs
- SystemPens.cs
- HtmlTableCellCollection.cs
- EnumValidator.cs
- HttpResponse.cs
- MenuEventArgs.cs