Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // 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
- AvTraceDetails.cs
- PartialTrustValidationBehavior.cs
- AggregateNode.cs
- DirectoryRootQuery.cs
- UndoManager.cs
- SafeTimerHandle.cs
- BasicExpressionVisitor.cs
- ValueConversionAttribute.cs
- FaultConverter.cs
- ViewPort3D.cs
- BatchServiceHost.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- PhysicalOps.cs
- XmlWhitespace.cs
- TemplateBindingExtensionConverter.cs
- LockedHandleGlyph.cs
- MultipleViewProviderWrapper.cs
- SafeCertificateStore.cs
- FunctionNode.cs
- SectionRecord.cs
- AggregationMinMaxHelpers.cs
- SqlClientWrapperSmiStreamChars.cs
- CharUnicodeInfo.cs
- HttpHandlerActionCollection.cs
- PixelFormatConverter.cs
- IteratorFilter.cs
- DataStorage.cs
- TextEffectCollection.cs
- FromReply.cs
- DataGridViewColumnCollection.cs
- DoubleKeyFrameCollection.cs
- ToolStripHighContrastRenderer.cs
- RemoteWebConfigurationHostStream.cs
- TakeOrSkipQueryOperator.cs
- WebEventCodes.cs
- SettingsPropertyIsReadOnlyException.cs
- ListDesigner.cs
- EntityClassGenerator.cs
- CodeExporter.cs
- DataControlFieldCollection.cs
- PkcsUtils.cs
- Dictionary.cs
- FileSecurity.cs
- PeerInvitationResponse.cs
- ComplexPropertyEntry.cs
- PrimitiveCodeDomSerializer.cs
- ToolStripLocationCancelEventArgs.cs
- ActiveDocumentEvent.cs
- LocalFileSettingsProvider.cs
- NetworkInterface.cs
- DateTimeConverter2.cs
- ConnectionManagementSection.cs
- GenericRootAutomationPeer.cs
- WizardStepBase.cs
- SamlSubject.cs
- GregorianCalendar.cs
- CheckedListBox.cs
- DataGridViewHeaderCell.cs
- Event.cs
- TemplateInstanceAttribute.cs
- RootBrowserWindowAutomationPeer.cs
- FastEncoderWindow.cs
- ObjectDataSourceEventArgs.cs
- DoubleStorage.cs
- ListViewContainer.cs
- XmlUrlEditor.cs
- NonBatchDirectoryCompiler.cs
- TransportDefaults.cs
- ExpressionBuilder.cs
- CodeTypeReferenceCollection.cs
- StyleModeStack.cs
- CodeGen.cs
- XmlValueConverter.cs
- HttpClientCertificate.cs
- CharUnicodeInfo.cs
- SmtpMail.cs
- NamespaceDecl.cs
- Visual3D.cs
- PlaceHolder.cs
- ReachFixedPageSerializer.cs
- VersionUtil.cs
- FolderLevelBuildProviderCollection.cs
- ContentType.cs
- SystemKeyConverter.cs
- Debug.cs
- InkPresenter.cs
- SystemDropShadowChrome.cs
- MessageQueueTransaction.cs
- Expression.cs
- RoutingConfiguration.cs
- WindowsListBox.cs
- CopyAction.cs
- SystemIcmpV4Statistics.cs
- SafeNativeMethods.cs
- DBCommand.cs
- validationstate.cs
- FreeFormDragDropManager.cs
- ApplicationServiceManager.cs
- ValidationSummary.cs
- ListItemViewControl.cs