Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / MS / Internal / AppModel / RequestStatusBarUpdateEventArgs.cs / 1 / 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
- ShapeTypeface.cs
- DbXmlEnabledProviderManifest.cs
- IImplicitResourceProvider.cs
- RunClient.cs
- SafeHandle.cs
- SafeBitVector32.cs
- TransportConfigurationTypeElementCollection.cs
- SafeRightsManagementQueryHandle.cs
- DetailsViewInsertedEventArgs.cs
- GeometryHitTestResult.cs
- LineVisual.cs
- RegexMatch.cs
- GradientSpreadMethodValidation.cs
- BoundColumn.cs
- SHA384Managed.cs
- TransformerInfoCollection.cs
- KeyTimeConverter.cs
- WizardSideBarListControlItem.cs
- SeekableReadStream.cs
- TrueReadOnlyCollection.cs
- DynamicFilter.cs
- InstalledFontCollection.cs
- LineGeometry.cs
- LocalFileSettingsProvider.cs
- ComplexTypeEmitter.cs
- Condition.cs
- JoinTreeSlot.cs
- GridViewHeaderRowPresenter.cs
- SignatureToken.cs
- ConstructorNeedsTagAttribute.cs
- Compiler.cs
- HighlightComponent.cs
- MessageSmuggler.cs
- PassportAuthenticationEventArgs.cs
- DataGridViewTextBoxColumn.cs
- NetDataContractSerializer.cs
- FontUnitConverter.cs
- SQlBooleanStorage.cs
- XmlSchemaElement.cs
- util.cs
- ItemChangedEventArgs.cs
- HtmlTableRowCollection.cs
- Compilation.cs
- InputLanguageManager.cs
- ValidationError.cs
- GregorianCalendar.cs
- ResourcesBuildProvider.cs
- Environment.cs
- WebPartHelpVerb.cs
- DataGridViewIntLinkedList.cs
- LateBoundBitmapDecoder.cs
- Soap11ServerProtocol.cs
- HtmlSelect.cs
- EventDescriptorCollection.cs
- OdbcConnectionPoolProviderInfo.cs
- ValueSerializer.cs
- ProviderUtil.cs
- DesignerCalendarAdapter.cs
- ClientData.cs
- FixedSOMElement.cs
- CodeVariableDeclarationStatement.cs
- SiteOfOriginPart.cs
- SqlVisitor.cs
- ReflectionHelper.cs
- Win32.cs
- StandardTransformFactory.cs
- FilterException.cs
- WebPartConnectionsCloseVerb.cs
- WebBrowserSiteBase.cs
- SystemIPv4InterfaceProperties.cs
- AdRotator.cs
- InvalidPropValue.cs
- BamlResourceSerializer.cs
- sqlinternaltransaction.cs
- Compiler.cs
- SendMailErrorEventArgs.cs
- XPathEmptyIterator.cs
- Lease.cs
- DataGridViewCellStyleConverter.cs
- ScaleTransform3D.cs
- FileInfo.cs
- CodeSnippetExpression.cs
- WorkflowIdleBehavior.cs
- PeerToPeerException.cs
- NegatedCellConstant.cs
- RequestSecurityTokenResponseCollection.cs
- XmlSchemaProviderAttribute.cs
- ProfileGroupSettingsCollection.cs
- Transform.cs
- ProgressChangedEventArgs.cs
- WindowsToolbar.cs
- SortableBindingList.cs
- TypeBuilder.cs
- ByteStream.cs
- DataPagerFieldCommandEventArgs.cs
- MailFileEditor.cs
- ACE.cs
- ZipPackagePart.cs
- ProgramNode.cs
- FrameworkElementAutomationPeer.cs