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
- TransformGroup.cs
- Wildcard.cs
- XmlSubtreeReader.cs
- CursorConverter.cs
- DataServiceHost.cs
- CacheMode.cs
- XmlSchemaObjectTable.cs
- GetCertificateRequest.cs
- DataRecord.cs
- DetailsViewInsertEventArgs.cs
- TraceHandler.cs
- HMACSHA384.cs
- ToolboxItem.cs
- InputLanguageProfileNotifySink.cs
- InitializeCorrelation.cs
- PropertyInformationCollection.cs
- PropertyBuilder.cs
- NestedContainer.cs
- ServiceOperationParameter.cs
- AssociationTypeEmitter.cs
- DataRecordObjectView.cs
- dataobject.cs
- MethodCallTranslator.cs
- PropertyToken.cs
- ButtonBase.cs
- SourceChangedEventArgs.cs
- NameSpaceExtractor.cs
- FormParameter.cs
- BinaryWriter.cs
- BinaryCommonClasses.cs
- IndexerNameAttribute.cs
- Attributes.cs
- DocumentScope.cs
- SoapMessage.cs
- ContractHandle.cs
- GuidelineCollection.cs
- DesignerActionVerbItem.cs
- CommonDialog.cs
- X509SecurityTokenAuthenticator.cs
- ObjectHelper.cs
- XmlSchemaSubstitutionGroup.cs
- EntityProviderFactory.cs
- Serializer.cs
- SplitContainer.cs
- XmlAttributes.cs
- WindowsTreeView.cs
- HttpApplicationStateWrapper.cs
- Environment.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- WebPartDeleteVerb.cs
- httpserverutility.cs
- RIPEMD160.cs
- XmlIlGenerator.cs
- ACL.cs
- PreviewPrintController.cs
- ObjectStateManagerMetadata.cs
- OracleInfoMessageEventArgs.cs
- Repeater.cs
- SelectionWordBreaker.cs
- RowToFieldTransformer.cs
- InputScopeManager.cs
- TransformValueSerializer.cs
- DesigntimeLicenseContextSerializer.cs
- PropagatorResult.cs
- StoreItemCollection.cs
- TableItemPatternIdentifiers.cs
- EncryptedData.cs
- CodeSpit.cs
- FixUpCollection.cs
- XslAst.cs
- CompilerGeneratedAttribute.cs
- Command.cs
- BindingExpressionUncommonField.cs
- DesignOnlyAttribute.cs
- COM2IProvidePropertyBuilderHandler.cs
- Switch.cs
- PrivateFontCollection.cs
- BoundConstants.cs
- AddInAttribute.cs
- RealizationDrawingContextWalker.cs
- ObjectDataSource.cs
- LateBoundBitmapDecoder.cs
- ObjectListCommandsPage.cs
- DataGridViewRowEventArgs.cs
- hebrewshape.cs
- PatternMatcher.cs
- KeyFrames.cs
- ParserHooks.cs
- Int32AnimationBase.cs
- ContentTextAutomationPeer.cs
- SqlDuplicator.cs
- SkewTransform.cs
- InternalResources.cs
- ApplicationDirectory.cs
- CqlLexerHelpers.cs
- PersonalizableAttribute.cs
- PenLineJoinValidation.cs
- SmuggledIUnknown.cs
- M3DUtil.cs
- ScriptingSectionGroup.cs