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
- Root.cs
- RSAPKCS1SignatureFormatter.cs
- GacUtil.cs
- CollectionViewSource.cs
- OptimizedTemplateContentHelper.cs
- thaishape.cs
- CodeSnippetExpression.cs
- ButtonAutomationPeer.cs
- ConfigXmlAttribute.cs
- HostingEnvironmentWrapper.cs
- Content.cs
- EventWaitHandleSecurity.cs
- IPipelineRuntime.cs
- IERequestCache.cs
- Filter.cs
- DataGridItem.cs
- ImageMap.cs
- SqlMethodTransformer.cs
- ExtenderProvidedPropertyAttribute.cs
- ResolveMatches11.cs
- ViewBase.cs
- QuaternionAnimationBase.cs
- DataErrorValidationRule.cs
- MsmqInputChannelListenerBase.cs
- PrePrepareMethodAttribute.cs
- ServiceOperationInvoker.cs
- BuilderPropertyEntry.cs
- IsolatedStorageFileStream.cs
- AddingNewEventArgs.cs
- EventLogger.cs
- DataGridViewComboBoxEditingControl.cs
- HttpConfigurationContext.cs
- TextRange.cs
- RegexGroupCollection.cs
- ImageSourceConverter.cs
- JoinElimination.cs
- FrameworkRichTextComposition.cs
- Dynamic.cs
- SqlConnectionPoolProviderInfo.cs
- BinarySerializer.cs
- Point3D.cs
- RegexWriter.cs
- DataGridViewSortCompareEventArgs.cs
- ServerIdentity.cs
- TagMapCollection.cs
- MSHTMLHost.cs
- OptimizerPatterns.cs
- DataServiceProcessingPipelineEventArgs.cs
- XmlUtf8RawTextWriter.cs
- GridItemCollection.cs
- JournalEntryStack.cs
- HttpConfigurationContext.cs
- CustomAssemblyResolver.cs
- XmlSchemaFacet.cs
- SqlDataSourceCommandParser.cs
- CompilerCollection.cs
- PagePropertiesChangingEventArgs.cs
- DataGridViewColumnHeaderCell.cs
- SqlRewriteScalarSubqueries.cs
- ContentElement.cs
- ItemDragEvent.cs
- RegisteredDisposeScript.cs
- OperatingSystem.cs
- CornerRadiusConverter.cs
- ObjectConverter.cs
- OuterGlowBitmapEffect.cs
- ChannelSinkStacks.cs
- GetWinFXPath.cs
- Facet.cs
- PropertyPathConverter.cs
- NativeMethods.cs
- HtmlInputReset.cs
- HttpHandlerActionCollection.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- ChangeBlockUndoRecord.cs
- DataRow.cs
- BindingEntityInfo.cs
- XmlNamespaceManager.cs
- HtmlTableCellCollection.cs
- LayoutUtils.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- SqlIdentifier.cs
- DataRelationPropertyDescriptor.cs
- ReadingWritingEntityEventArgs.cs
- Size3D.cs
- FileFormatException.cs
- SqlConnectionString.cs
- HtmlContainerControl.cs
- BitConverter.cs
- SimpleMailWebEventProvider.cs
- WindowInteropHelper.cs
- DataGridViewComboBoxCell.cs
- FunctionUpdateCommand.cs
- NavigatorOutput.cs
- ZipIOModeEnforcingStream.cs
- DataBoundControlHelper.cs
- HandleCollector.cs
- SqlWriter.cs
- Control.cs
- StatusBar.cs