Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // 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
- TextSpanModifier.cs
- SymbolDocumentInfo.cs
- MappedMetaModel.cs
- IfAction.cs
- FunctionQuery.cs
- TextServicesCompartment.cs
- CompoundFileIOPermission.cs
- HttpClientChannel.cs
- DbConnectionInternal.cs
- ThreadAttributes.cs
- DataObject.cs
- Claim.cs
- TokenBasedSetEnumerator.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- CreateParams.cs
- Stopwatch.cs
- XappLauncher.cs
- SurrogateEncoder.cs
- WindowAutomationPeer.cs
- cookiecontainer.cs
- PointHitTestParameters.cs
- KeyFrames.cs
- DataGridItem.cs
- GetPageNumberCompletedEventArgs.cs
- WindowClosedEventArgs.cs
- HttpProfileGroupBase.cs
- DefaultBinder.cs
- DataControlImageButton.cs
- ContextStack.cs
- HwndPanningFeedback.cs
- RunWorkerCompletedEventArgs.cs
- NetMsmqSecurityElement.cs
- basemetadatamappingvisitor.cs
- DataGridLengthConverter.cs
- OuterGlowBitmapEffect.cs
- AddInPipelineAttributes.cs
- DefaultPropertyAttribute.cs
- DBNull.cs
- Matrix3D.cs
- TextEndOfSegment.cs
- SecurityState.cs
- Timeline.cs
- FaultImportOptions.cs
- DataGridLinkButton.cs
- PropertyTabAttribute.cs
- ImageIndexConverter.cs
- WindowHideOrCloseTracker.cs
- FaultCallbackWrapper.cs
- ParameterSubsegment.cs
- OperationGenerator.cs
- SafeTokenHandle.cs
- FormsAuthenticationModule.cs
- DataTableReader.cs
- WebPartMenuStyle.cs
- CodeCompileUnit.cs
- CollectionBuilder.cs
- ExpandCollapsePattern.cs
- OpCopier.cs
- SessionParameter.cs
- DataSourceControlBuilder.cs
- DockEditor.cs
- LinqDataSourceDisposeEventArgs.cs
- ProtocolElement.cs
- StringReader.cs
- Geometry3D.cs
- SecurityUtils.cs
- ToolStripLabel.cs
- EmptyWorkItem.cs
- CompiledQueryCacheKey.cs
- InvokeProviderWrapper.cs
- TemplateEditingFrame.cs
- EventSourceCreationData.cs
- ToolboxItemLoader.cs
- ProfileEventArgs.cs
- UInt16Converter.cs
- IsolatedStorageFile.cs
- RawMouseInputReport.cs
- IsolationInterop.cs
- ListViewInsertEventArgs.cs
- WindowsFormsHelpers.cs
- DynamicValueConverter.cs
- SendSecurityHeaderElementContainer.cs
- DtcInterfaces.cs
- BrushMappingModeValidation.cs
- TypeValidationEventArgs.cs
- DesignerAutoFormatStyle.cs
- CodeSubDirectoriesCollection.cs
- CachedFontFamily.cs
- Lease.cs
- ISFClipboardData.cs
- Ipv6Element.cs
- SocketManager.cs
- TextBoxRenderer.cs
- DataGridrowEditEndingEventArgs.cs
- DiscoveryDocumentReference.cs
- ActivityMarkupSerializer.cs
- precedingquery.cs
- RadioButtonBaseAdapter.cs
- ExtentKey.cs
- StylesEditorDialog.cs