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
- RelatedPropertyManager.cs
- AlignmentYValidation.cs
- PathData.cs
- DockPattern.cs
- XPathDescendantIterator.cs
- OpenFileDialog.cs
- DataListItem.cs
- ContentType.cs
- SafeProcessHandle.cs
- AssemblyResourceLoader.cs
- SignatureDescription.cs
- UserMapPath.cs
- MetadataCache.cs
- ApplicationServicesHostFactory.cs
- MatchingStyle.cs
- EventLogPermissionHolder.cs
- CalendarTable.cs
- PartitionedDataSource.cs
- UserControlParser.cs
- QilFunction.cs
- ConstantProjectedSlot.cs
- ResourceDescriptionAttribute.cs
- ModulesEntry.cs
- WebPartDeleteVerb.cs
- MachineKeyConverter.cs
- MultipleViewProviderWrapper.cs
- TreeViewItemAutomationPeer.cs
- RadioButton.cs
- IDispatchConstantAttribute.cs
- CodeObjectCreateExpression.cs
- RelationshipNavigation.cs
- Exceptions.cs
- QuadraticEase.cs
- XmlObjectSerializer.cs
- loginstatus.cs
- Compensation.cs
- RtfToXamlLexer.cs
- GcSettings.cs
- Pen.cs
- ApplicationProxyInternal.cs
- HttpWebResponse.cs
- SelectionEditor.cs
- BuildManager.cs
- HttpBrowserCapabilitiesWrapper.cs
- Psha1DerivedKeyGenerator.cs
- ThrowHelper.cs
- pingexception.cs
- TypedTableHandler.cs
- ExpressionContext.cs
- WebPart.cs
- ResourcePool.cs
- FindResponse.cs
- DataBindingValueUIHandler.cs
- SamlSecurityTokenAuthenticator.cs
- BitmapEffectDrawingContextState.cs
- AutomationIdentifier.cs
- WeakReference.cs
- HotSpotCollection.cs
- VirtualizedCellInfoCollection.cs
- CaseInsensitiveHashCodeProvider.cs
- ping.cs
- CompoundFileStorageReference.cs
- CertificateManager.cs
- EmbeddedMailObjectsCollection.cs
- EmissiveMaterial.cs
- SystemThemeKey.cs
- AQNBuilder.cs
- ModuleBuilderData.cs
- ReversePositionQuery.cs
- SerializationInfo.cs
- DeclarationUpdate.cs
- SendMailErrorEventArgs.cs
- Behavior.cs
- ClientRuntimeConfig.cs
- DaylightTime.cs
- PolyQuadraticBezierSegment.cs
- TextServicesManager.cs
- ObjectAnimationBase.cs
- PagedDataSource.cs
- WebBrowserUriTypeConverter.cs
- SymLanguageVendor.cs
- ConfigurationSectionGroupCollection.cs
- SQLInt16.cs
- HMACSHA1.cs
- ExpandableObjectConverter.cs
- RegexWriter.cs
- CompositionTarget.cs
- Compilation.cs
- HtmlFormWrapper.cs
- CryptographicAttribute.cs
- XmlIlGenerator.cs
- TemplateKeyConverter.cs
- XPathQilFactory.cs
- FunctionImportMapping.cs
- SerialPinChanges.cs
- ZipFileInfoCollection.cs
- ListSourceHelper.cs
- InstancePersistenceCommand.cs
- Vector3DCollection.cs
- HttpResponseInternalWrapper.cs