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
- ToolStripPanelRow.cs
- ToolboxItemAttribute.cs
- ByteArrayHelperWithString.cs
- GlobalizationSection.cs
- TempFiles.cs
- PatternMatcher.cs
- CodeDomConfigurationHandler.cs
- ReadOnlyHierarchicalDataSourceView.cs
- LinkConverter.cs
- XmlJsonWriter.cs
- ArglessEventHandlerProxy.cs
- ControllableStoryboardAction.cs
- OptimizerPatterns.cs
- TextRangeAdaptor.cs
- ListenerUnsafeNativeMethods.cs
- MediaTimeline.cs
- BitmapImage.cs
- FixedHighlight.cs
- PriorityRange.cs
- ServicePointManagerElement.cs
- _NativeSSPI.cs
- ReflectionUtil.cs
- ReadOnlyObservableCollection.cs
- ArgumentNullException.cs
- UIElement3DAutomationPeer.cs
- SineEase.cs
- MenuCommands.cs
- DeclarativeCatalogPart.cs
- XslCompiledTransform.cs
- LocationSectionRecord.cs
- CodeAccessPermission.cs
- COMException.cs
- SecurityContextKeyIdentifierClause.cs
- ToolStripSeparatorRenderEventArgs.cs
- StylusPointPropertyInfo.cs
- StackSpiller.Generated.cs
- WindowsFormsSectionHandler.cs
- PinnedBufferMemoryStream.cs
- PriorityQueue.cs
- DocumentPageHost.cs
- FontSizeConverter.cs
- DiscoveryOperationContextExtension.cs
- PipelineModuleStepContainer.cs
- TypeElementCollection.cs
- HtmlInputControl.cs
- ClientFormsIdentity.cs
- _BaseOverlappedAsyncResult.cs
- SqlExpander.cs
- UniqueIdentifierService.cs
- WindowsListViewItemCheckBox.cs
- MachineKeyValidationConverter.cs
- HandoffBehavior.cs
- PersonalizableTypeEntry.cs
- elementinformation.cs
- RegexCompilationInfo.cs
- MenuEventArgs.cs
- SyndicationCategory.cs
- Animatable.cs
- XsdBuilder.cs
- MostlySingletonList.cs
- GPRECTF.cs
- SafeNativeMethodsCLR.cs
- XmlAggregates.cs
- WeakReference.cs
- QilStrConcat.cs
- ScrollProviderWrapper.cs
- InputProcessorProfiles.cs
- RoamingStoreFile.cs
- ConvertBinder.cs
- WebBrowsableAttribute.cs
- WindowsListView.cs
- Soap.cs
- CultureTable.cs
- QilReplaceVisitor.cs
- EmissiveMaterial.cs
- Storyboard.cs
- KeyInterop.cs
- CrossContextChannel.cs
- FixedBufferAttribute.cs
- MSAAEventDispatcher.cs
- GACMembershipCondition.cs
- ClientSession.cs
- NotifyParentPropertyAttribute.cs
- LicenseProviderAttribute.cs
- MDIControlStrip.cs
- MyContact.cs
- SimplePropertyEntry.cs
- TraceSection.cs
- AsnEncodedData.cs
- Compilation.cs
- CallSiteBinder.cs
- SortAction.cs
- DebugViewWriter.cs
- Column.cs
- HttpVersion.cs
- RowVisual.cs
- Visual.cs
- QilParameter.cs
- SoapFault.cs
- DataGridViewRowCancelEventArgs.cs