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
- StyleReferenceConverter.cs
- XmlChoiceIdentifierAttribute.cs
- FactoryMaker.cs
- ErasingStroke.cs
- _RegBlobWebProxyDataBuilder.cs
- WindowsToolbar.cs
- MethodSet.cs
- DbDataAdapter.cs
- EventHandlerService.cs
- XmlTypeAttribute.cs
- LoginName.cs
- CreatingCookieEventArgs.cs
- BaseCollection.cs
- ServiceMoniker.cs
- FontUnitConverter.cs
- InheritanceContextHelper.cs
- DodSequenceMerge.cs
- DataService.cs
- FormsAuthenticationEventArgs.cs
- SqlConnectionPoolGroupProviderInfo.cs
- HtmlInputCheckBox.cs
- OperationInfoBase.cs
- HoistedLocals.cs
- SystemIPGlobalProperties.cs
- Triangle.cs
- AuthorizationSection.cs
- webeventbuffer.cs
- WS2007FederationHttpBindingElement.cs
- InvariantComparer.cs
- ZipIOExtraField.cs
- ThreadAbortException.cs
- WindowsTooltip.cs
- UshortList2.cs
- List.cs
- Track.cs
- FontStretches.cs
- UIPermission.cs
- HelloOperation11AsyncResult.cs
- PrintingPermissionAttribute.cs
- ConditionChanges.cs
- PlanCompiler.cs
- ParserHooks.cs
- UInt32Storage.cs
- NamedPipeHostedTransportConfiguration.cs
- SettingsAttributeDictionary.cs
- FtpRequestCacheValidator.cs
- PartialList.cs
- Encoder.cs
- HttpCookiesSection.cs
- ProcessManager.cs
- WS2007HttpBinding.cs
- CompilerScopeManager.cs
- ApplicationTrust.cs
- DrawingBrush.cs
- Encoder.cs
- SQlBooleanStorage.cs
- SimpleBitVector32.cs
- SelectionItemPattern.cs
- ActivityTypeDesigner.xaml.cs
- ToolStripControlHost.cs
- TargetConverter.cs
- ConfigurationStrings.cs
- BoundField.cs
- ProtectedConfiguration.cs
- PageAsyncTaskManager.cs
- DynamicMethod.cs
- SqlCacheDependencySection.cs
- SettingsPropertyIsReadOnlyException.cs
- InputLanguageProfileNotifySink.cs
- ClockGroup.cs
- PointF.cs
- XmlSignatureManifest.cs
- XmlTextReaderImpl.cs
- CodeDirectionExpression.cs
- DataObjectFieldAttribute.cs
- BrowsableAttribute.cs
- TrackingServices.cs
- ComboBoxHelper.cs
- TextEditorThreadLocalStore.cs
- ServiceModelEnumValidator.cs
- NotImplementedException.cs
- ContentElement.cs
- TwoPhaseCommit.cs
- LabelDesigner.cs
- XmlChildEnumerator.cs
- SecurityUtils.cs
- StringInfo.cs
- DataControlImageButton.cs
- ToolStripDropDownItem.cs
- Expression.cs
- BaseCollection.cs
- ReadOnlyTernaryTree.cs
- RepeatInfo.cs
- ParallelEnumerable.cs
- ConstNode.cs
- OpenTypeCommon.cs
- CompiledELinqQueryState.cs
- ItemsPanelTemplate.cs
- ConfigXmlText.cs
- AnonymousIdentificationSection.cs