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
- xsdvalidator.cs
- TextServicesCompartmentContext.cs
- EventLogPermissionEntryCollection.cs
- Avt.cs
- CardSpaceException.cs
- Transform3D.cs
- PopupControlService.cs
- DataGridRowsPresenter.cs
- MachineKeySection.cs
- COM2IDispatchConverter.cs
- ControlSerializer.cs
- configsystem.cs
- ColumnCollection.cs
- GenericTextProperties.cs
- MsmqNonTransactedPoisonHandler.cs
- ArrayEditor.cs
- Latin1Encoding.cs
- RawUIStateInputReport.cs
- AuthenticationSection.cs
- BypassElementCollection.cs
- OrthographicCamera.cs
- NativeCppClassAttribute.cs
- ListViewCancelEventArgs.cs
- BinaryMethodMessage.cs
- RestClientProxyHandler.cs
- SolidBrush.cs
- Token.cs
- IOException.cs
- BamlTreeMap.cs
- JpegBitmapDecoder.cs
- TimeIntervalCollection.cs
- __Error.cs
- HtmlTableCellCollection.cs
- SQLDateTime.cs
- SequenceRange.cs
- RectAnimation.cs
- X509CertificateChain.cs
- ContextStaticAttribute.cs
- RegistrationServices.cs
- CultureSpecificStringDictionary.cs
- KeyInterop.cs
- RemotingConfigParser.cs
- HttpRuntime.cs
- DBConnectionString.cs
- Synchronization.cs
- UInt16Converter.cs
- MeasurementDCInfo.cs
- UriParserTemplates.cs
- Metadata.cs
- MultipleViewProviderWrapper.cs
- FormViewInsertedEventArgs.cs
- XmlSchemaInfo.cs
- TypeLibConverter.cs
- InstanceDataCollection.cs
- TemplatedEditableDesignerRegion.cs
- TextMetrics.cs
- PolicyException.cs
- RuleEngine.cs
- CheckBoxBaseAdapter.cs
- DataGridViewComboBoxCell.cs
- ConfigXmlComment.cs
- TableLayoutPanel.cs
- WebPartEditorCancelVerb.cs
- NativeMethodsCLR.cs
- VisualStyleTypesAndProperties.cs
- ComponentEvent.cs
- GlobalProxySelection.cs
- SkipQueryOptionExpression.cs
- HtmlMeta.cs
- LinearGradientBrush.cs
- DocumentViewerBase.cs
- UrlMappingsSection.cs
- ForAllOperator.cs
- ApplicationGesture.cs
- DisplayInformation.cs
- DataGridTableStyleMappingNameEditor.cs
- ForEachAction.cs
- DiscoveryReferences.cs
- RepeatBehavior.cs
- SoapFault.cs
- QuotedPrintableStream.cs
- TypeResolvingOptions.cs
- TdsParameterSetter.cs
- ContentPosition.cs
- DocumentViewerConstants.cs
- SpellerInterop.cs
- BlobPersonalizationState.cs
- TextBlock.cs
- infer.cs
- Track.cs
- ZipFileInfoCollection.cs
- BaseResourcesBuildProvider.cs
- CustomError.cs
- sqlser.cs
- BookmarkScopeInfo.cs
- DataGridLinkButton.cs
- IEnumerable.cs
- AffineTransform3D.cs
- Panel.cs
- BatchParser.cs