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
- FixedSOMContainer.cs
- LazyTextWriterCreator.cs
- ControlBuilder.cs
- PositiveTimeSpanValidator.cs
- CustomCredentialPolicy.cs
- ListenerHandler.cs
- QueryResponse.cs
- GlobalProxySelection.cs
- CodeComment.cs
- HostingEnvironment.cs
- WpfXamlType.cs
- ProcessModule.cs
- SqlClientWrapperSmiStreamChars.cs
- ClassDataContract.cs
- Utils.cs
- Point3DAnimationBase.cs
- ImageIndexConverter.cs
- StreamInfo.cs
- PersistenceProviderDirectory.cs
- ErrorBehavior.cs
- RuntimeArgumentHandle.cs
- SqlGatherConsumedAliases.cs
- ComPlusServiceLoader.cs
- ISFClipboardData.cs
- HeaderLabel.cs
- NavigationProperty.cs
- DataViewSetting.cs
- GeometryValueSerializer.cs
- SchemaDeclBase.cs
- cryptoapiTransform.cs
- CompressedStack.cs
- TimeStampChecker.cs
- ByteStack.cs
- QuaternionAnimationBase.cs
- StructureChangedEventArgs.cs
- PointValueSerializer.cs
- ProgressPage.cs
- ValueType.cs
- ThreadAttributes.cs
- MissingFieldException.cs
- Merger.cs
- SQLBytesStorage.cs
- SafeProcessHandle.cs
- GridViewRowCollection.cs
- DefaultAsyncDataDispatcher.cs
- TransformerInfoCollection.cs
- FixedTextView.cs
- ConfigurationHandlersInstallComponent.cs
- SystemTcpConnection.cs
- PackageRelationshipCollection.cs
- Validator.cs
- BinaryObjectReader.cs
- DbProviderFactories.cs
- MediaEntryAttribute.cs
- ExpressionBuilder.cs
- XmlRootAttribute.cs
- SizeChangedEventArgs.cs
- OuterGlowBitmapEffect.cs
- Clipboard.cs
- WmlValidatorAdapter.cs
- XmlSchemaSimpleType.cs
- RangeValueProviderWrapper.cs
- FaultHandlingFilter.cs
- BitStack.cs
- DetailsViewPageEventArgs.cs
- SortedList.cs
- LogSwitch.cs
- XmlDataFileEditor.cs
- MailAddressParser.cs
- FieldReference.cs
- FontWeightConverter.cs
- InputMethodStateChangeEventArgs.cs
- sortedlist.cs
- ProfessionalColorTable.cs
- IDispatchConstantAttribute.cs
- CompatibleIComparer.cs
- SmiMetaData.cs
- RequestBringIntoViewEventArgs.cs
- CompiledXpathExpr.cs
- FtpRequestCacheValidator.cs
- WindowsEditBox.cs
- TextEditorTables.cs
- EntityStoreSchemaGenerator.cs
- ECDsa.cs
- XPathDocumentBuilder.cs
- objectquery_tresulttype.cs
- PrintDialog.cs
- UpdateEventArgs.cs
- XNodeNavigator.cs
- Invariant.cs
- PrintController.cs
- ComponentDispatcherThread.cs
- XPathNodeHelper.cs
- SqlMethodAttribute.cs
- TextPointerBase.cs
- RadioButton.cs
- TextClipboardData.cs
- ThreadStartException.cs
- ArraySet.cs
- MiniAssembly.cs