Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExpressionNormalizer.cs
- MailDefinition.cs
- SizeValueSerializer.cs
- CellPartitioner.cs
- CustomLineCap.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ToolStripManager.cs
- TraceAsyncResult.cs
- Helpers.cs
- ConnectionStringSettings.cs
- BaseInfoTable.cs
- MultipartIdentifier.cs
- XmlSchemaRedefine.cs
- DataList.cs
- OdbcCommand.cs
- OneWayChannelListener.cs
- LinqDataSourceStatusEventArgs.cs
- AbstractDataSvcMapFileLoader.cs
- DataTableNewRowEvent.cs
- DateTimeAutomationPeer.cs
- VariableQuery.cs
- Point4DConverter.cs
- Int32.cs
- SerialPinChanges.cs
- HtmlInputImage.cs
- SimplePropertyEntry.cs
- ChildChangedEventArgs.cs
- LongValidatorAttribute.cs
- CreateWorkflowOwnerCommand.cs
- ContentPropertyAttribute.cs
- MessageSecurityOverHttpElement.cs
- WebEventCodes.cs
- ResourceManager.cs
- Thread.cs
- HtmlInputSubmit.cs
- SqlDelegatedTransaction.cs
- GridViewSortEventArgs.cs
- TextDecorationCollectionConverter.cs
- ClaimTypeElement.cs
- RequestCacheEntry.cs
- XmlSchemaAnnotated.cs
- Binding.cs
- MetafileHeader.cs
- BinaryFormatterSinks.cs
- CheckoutException.cs
- WebPartMenuStyle.cs
- EntityDataSourceDataSelectionPanel.cs
- BaseParagraph.cs
- BamlResourceSerializer.cs
- XomlCompilerHelpers.cs
- Stacktrace.cs
- MethodBuilder.cs
- SQLDecimal.cs
- ConsoleKeyInfo.cs
- StateWorkerRequest.cs
- DataBinding.cs
- SwitchCase.cs
- SystemWebCachingSectionGroup.cs
- ChannelListenerBase.cs
- ThreadSafeList.cs
- UnmanagedMarshal.cs
- SiteMapNodeItemEventArgs.cs
- Roles.cs
- GridViewSortEventArgs.cs
- DebuggerAttributes.cs
- PrintController.cs
- DateTimeConverter.cs
- PageAdapter.cs
- DataGridDesigner.cs
- InlineCollection.cs
- Merger.cs
- XmlCDATASection.cs
- GrammarBuilderRuleRef.cs
- DependencyPropertyConverter.cs
- UserPersonalizationStateInfo.cs
- CustomWebEventKey.cs
- BaseCollection.cs
- XmlSchemaSimpleTypeRestriction.cs
- ByteAnimation.cs
- ServiceNameCollection.cs
- Operator.cs
- Int64.cs
- SmtpLoginAuthenticationModule.cs
- UICuesEvent.cs
- EntityViewGenerationAttribute.cs
- CancellableEnumerable.cs
- EntityDataSourceConfigureObjectContext.cs
- SelectionProcessor.cs
- WsdlParser.cs
- MimeFormImporter.cs
- ADMembershipUser.cs
- DataServiceHost.cs
- ApplicationCommands.cs
- EdmToObjectNamespaceMap.cs
- ParserStreamGeometryContext.cs
- NonBatchDirectoryCompiler.cs
- SqlNamer.cs
- AssemblyCollection.cs
- XmlSchemaAnnotated.cs
- SystemResourceHost.cs