Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- remotingproxy.cs
- RootProfilePropertySettingsCollection.cs
- _LazyAsyncResult.cs
- AppendHelper.cs
- PtsContext.cs
- TextParaClient.cs
- EventLogHandle.cs
- SpecialFolderEnumConverter.cs
- UInt64.cs
- PrinterResolution.cs
- CompressionTransform.cs
- ContextDataSourceView.cs
- WebPartConnectionsCloseVerb.cs
- DataObject.cs
- PersonalizablePropertyEntry.cs
- SqlCacheDependency.cs
- IISMapPath.cs
- DefaultExpression.cs
- AtomMaterializer.cs
- ValidationErrorEventArgs.cs
- PartitionerStatic.cs
- HwndTarget.cs
- InputScopeManager.cs
- SafeThreadHandle.cs
- StrongNameSignatureInformation.cs
- SoapClientProtocol.cs
- XmlDataLoader.cs
- Debug.cs
- CollectionsUtil.cs
- DataBindingCollection.cs
- TransactionManager.cs
- COM2AboutBoxPropertyDescriptor.cs
- CodeDOMProvider.cs
- ValidatorCompatibilityHelper.cs
- NativeMethods.cs
- PolyBezierSegment.cs
- SecurityManager.cs
- IgnoreFlushAndCloseStream.cs
- AdCreatedEventArgs.cs
- _OSSOCK.cs
- ComboBoxRenderer.cs
- Metafile.cs
- SqlStatistics.cs
- WebPartMenu.cs
- ReferentialConstraint.cs
- XslTransform.cs
- DesignerAutoFormatStyle.cs
- ContentPathSegment.cs
- SelectedPathEditor.cs
- IxmlLineInfo.cs
- dbdatarecord.cs
- FaultPropagationQuery.cs
- ViewValidator.cs
- SessionStateModule.cs
- RunWorkerCompletedEventArgs.cs
- MetadataSource.cs
- CompiledQueryCacheEntry.cs
- ComUdtElement.cs
- HtmlMeta.cs
- _LazyAsyncResult.cs
- XMLUtil.cs
- TextTreeTextNode.cs
- WorkflowDurableInstance.cs
- Walker.cs
- CookieParameter.cs
- BooleanFunctions.cs
- DescendentsWalker.cs
- Rss20FeedFormatter.cs
- PersonalizableTypeEntry.cs
- DependencyPropertyKey.cs
- CollectionType.cs
- TabletDeviceInfo.cs
- BasicExpandProvider.cs
- CustomWebEventKey.cs
- EntityDataReader.cs
- ItemPager.cs
- SecurityManager.cs
- IImplicitResourceProvider.cs
- SizeF.cs
- ObjectDataSourceDisposingEventArgs.cs
- ErrorTableItemStyle.cs
- RemotingConfiguration.cs
- RequestQueryParser.cs
- SiteMapNode.cs
- SafeThreadHandle.cs
- SqlServer2KCompatibilityCheck.cs
- ipaddressinformationcollection.cs
- AccessDataSource.cs
- DispatcherExceptionFilterEventArgs.cs
- Quaternion.cs
- CustomAttributeBuilder.cs
- DetailsViewPageEventArgs.cs
- _ListenerResponseStream.cs
- DataBoundControlParameterTarget.cs
- _Semaphore.cs
- RequestCachePolicy.cs
- HttpCookie.cs
- LateBoundBitmapDecoder.cs
- IsolatedStorageFile.cs
- SmiContext.cs