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
- WebResourceAttribute.cs
- ImageSourceConverter.cs
- DeclaredTypeElementCollection.cs
- FixedSchema.cs
- VisualBrush.cs
- FaultHandlingFilter.cs
- RelationshipConverter.cs
- AstTree.cs
- Rect3D.cs
- ArrangedElement.cs
- SqlDuplicator.cs
- SapiInterop.cs
- FixedSOMTextRun.cs
- mediaclock.cs
- TextShapeableCharacters.cs
- DataSourceXmlAttributeAttribute.cs
- ping.cs
- DataObjectFieldAttribute.cs
- ProfileEventArgs.cs
- ExceptionUtil.cs
- FollowerQueueCreator.cs
- DataDesignUtil.cs
- DataServiceClientException.cs
- XMLDiffLoader.cs
- WebPartsPersonalization.cs
- IPGlobalProperties.cs
- RawStylusActions.cs
- FrameworkContextData.cs
- URLBuilder.cs
- CodeIndexerExpression.cs
- TypeConverterHelper.cs
- WebResourceAttribute.cs
- ListViewItemSelectionChangedEvent.cs
- XmlC14NWriter.cs
- ExceptionUtil.cs
- TableLayoutSettings.cs
- BCryptNative.cs
- RegexStringValidatorAttribute.cs
- ValueHandle.cs
- SqlDataSourceStatusEventArgs.cs
- ListViewPagedDataSource.cs
- SafeMILHandle.cs
- ServiceNameElement.cs
- RoutedCommand.cs
- TextEditorCharacters.cs
- _ContextAwareResult.cs
- CellParagraph.cs
- SmtpDigestAuthenticationModule.cs
- UrlEncodedParameterWriter.cs
- Canvas.cs
- ProcessHostServerConfig.cs
- FreezableDefaultValueFactory.cs
- WpfWebRequestHelper.cs
- ISO2022Encoding.cs
- Mapping.cs
- BehaviorEditorPart.cs
- TableLayoutSettingsTypeConverter.cs
- Track.cs
- XNameTypeConverter.cs
- PreProcessor.cs
- HttpResponseHeader.cs
- CustomServiceCredentials.cs
- DataListItemEventArgs.cs
- RequestCacheEntry.cs
- CollectionCodeDomSerializer.cs
- printdlgexmarshaler.cs
- FixedTextView.cs
- UpdateCompiler.cs
- ColumnBinding.cs
- PropertyRecord.cs
- AppDomainResourcePerfCounters.cs
- WindowsListViewItemStartMenu.cs
- BinaryConverter.cs
- LoadedOrUnloadedOperation.cs
- bidPrivateBase.cs
- Message.cs
- ProcessThreadCollection.cs
- GPRECT.cs
- RectConverter.cs
- MsmqProcessProtocolHandler.cs
- PersonalizationProviderHelper.cs
- FtpRequestCacheValidator.cs
- XmlChildEnumerator.cs
- AsnEncodedData.cs
- EtwTrackingParticipant.cs
- FieldAccessException.cs
- GenericUI.cs
- SafeNativeMethodsOther.cs
- TableHeaderCell.cs
- TrustLevelCollection.cs
- Point3D.cs
- CallbackHandler.cs
- TextModifierScope.cs
- PropertyManager.cs
- X509Logo.cs
- Int16Animation.cs
- BadImageFormatException.cs
- CancelAsyncOperationRequest.cs
- SessionParameter.cs
- GenericParameterDataContract.cs