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
- SQLInt32Storage.cs
- GenerateHelper.cs
- ConnectionStringSettings.cs
- Block.cs
- SolidColorBrush.cs
- Pair.cs
- InstanceLockQueryResult.cs
- UnsafeNativeMethodsCLR.cs
- InfoCardBinaryReader.cs
- ReservationNotFoundException.cs
- InputLangChangeRequestEvent.cs
- XmlReader.cs
- TextEditorThreadLocalStore.cs
- XmlRawWriter.cs
- Point3DAnimationUsingKeyFrames.cs
- DmlSqlGenerator.cs
- DataGridViewRow.cs
- ParseNumbers.cs
- XmlElementCollection.cs
- NativeMethods.cs
- VariableBinder.cs
- ReferenceEqualityComparer.cs
- PrimitiveXmlSerializers.cs
- CleanUpVirtualizedItemEventArgs.cs
- RegexCapture.cs
- ValidatorCompatibilityHelper.cs
- QuotedPrintableStream.cs
- ComIntegrationManifestGenerator.cs
- XmlSchemaSubstitutionGroup.cs
- XPathNavigatorReader.cs
- XmlUtf8RawTextWriter.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- ScriptingWebServicesSectionGroup.cs
- PopOutPanel.cs
- StructuralType.cs
- XmlAutoDetectWriter.cs
- ThreadExceptionEvent.cs
- OleDbParameterCollection.cs
- CreateWorkflowOwnerCommand.cs
- TranslateTransform3D.cs
- DebugInfoExpression.cs
- DataFieldCollectionEditor.cs
- DrawingVisualDrawingContext.cs
- CalendarDayButton.cs
- HttpApplicationFactory.cs
- WebZone.cs
- DocumentEventArgs.cs
- SiteMapHierarchicalDataSourceView.cs
- HtmlObjectListAdapter.cs
- BamlBinaryWriter.cs
- XmlAnyElementAttribute.cs
- ObjectViewListener.cs
- Pkcs7Recipient.cs
- PeerNeighborManager.cs
- SecondaryIndex.cs
- Evidence.cs
- GridViewPageEventArgs.cs
- VSWCFServiceContractGenerator.cs
- TextServicesPropertyRanges.cs
- EntityTemplateFactory.cs
- SessionPageStatePersister.cs
- JavascriptCallbackBehaviorAttribute.cs
- Evidence.cs
- EntityParameter.cs
- HiddenField.cs
- SingleConverter.cs
- WaitForChangedResult.cs
- Margins.cs
- MultiSelectRootGridEntry.cs
- BrowserCapabilitiesFactoryBase.cs
- ExpressionCopier.cs
- UrlMappingCollection.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- TextServicesHost.cs
- NegotiateStream.cs
- TileBrush.cs
- RegexWriter.cs
- CipherData.cs
- DocumentReferenceCollection.cs
- Columns.cs
- FusionWrap.cs
- TrackingMemoryStream.cs
- XmlUtf8RawTextWriter.cs
- XmlDocumentSerializer.cs
- ReturnType.cs
- SchemaType.cs
- ConstraintEnumerator.cs
- NavigateEvent.cs
- BufferedWebEventProvider.cs
- HierarchicalDataSourceControl.cs
- nulltextcontainer.cs
- SqlNodeAnnotation.cs
- EventDescriptorCollection.cs
- ObjectContextServiceProvider.cs
- FileDataSourceCache.cs
- UmAlQuraCalendar.cs
- BitmapEffectGroup.cs
- RawStylusInputReport.cs
- ConnectionsZone.cs
- XmlDataImplementation.cs