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
- ExtensionQuery.cs
- ProcessModuleCollection.cs
- SharedConnectionInfo.cs
- XmlChildEnumerator.cs
- Assert.cs
- HttpAsyncResult.cs
- ToolStripItemImageRenderEventArgs.cs
- VerificationAttribute.cs
- DataGridViewButtonCell.cs
- EventLogEntryCollection.cs
- CompoundFileStreamReference.cs
- LiteralSubsegment.cs
- CustomValidator.cs
- DataGridViewSortCompareEventArgs.cs
- ConfigurationSectionGroup.cs
- Font.cs
- SoapBinding.cs
- _WinHttpWebProxyDataBuilder.cs
- XmlRootAttribute.cs
- ModelFactory.cs
- DynamicResourceExtension.cs
- ListParagraph.cs
- XmlTypeMapping.cs
- CommandDevice.cs
- WindowsSidIdentity.cs
- SecureUICommand.cs
- MarginCollapsingState.cs
- Environment.cs
- MethodCallTranslator.cs
- ExpressionSelection.cs
- FloatSumAggregationOperator.cs
- FrameworkTemplate.cs
- System.Data_BID.cs
- MemberDomainMap.cs
- ExpressionTable.cs
- NonSerializedAttribute.cs
- LeaseManager.cs
- PenContext.cs
- BevelBitmapEffect.cs
- WindowInteractionStateTracker.cs
- StateElementCollection.cs
- ReversePositionQuery.cs
- ProcessManager.cs
- DashStyles.cs
- RightNameExpirationInfoPair.cs
- HasCopySemanticsAttribute.cs
- Image.cs
- WebServiceTypeData.cs
- SqlMetaData.cs
- EntityReference.cs
- ResourceCodeDomSerializer.cs
- WmlCommandAdapter.cs
- GeneralTransformGroup.cs
- NameService.cs
- FacetChecker.cs
- XPathDocumentBuilder.cs
- StdValidatorsAndConverters.cs
- InfiniteTimeSpanConverter.cs
- CodePropertyReferenceExpression.cs
- MobileCapabilities.cs
- DbParameterHelper.cs
- XAMLParseException.cs
- MarshalByRefObject.cs
- SqlErrorCollection.cs
- XmlWriter.cs
- PeerName.cs
- Rfc2898DeriveBytes.cs
- GeometryCollection.cs
- AbandonedMutexException.cs
- MemoryPressure.cs
- ApplicationFileParser.cs
- GeneratedCodeAttribute.cs
- DynamicMethod.cs
- TraceLevelStore.cs
- TreeNodeStyle.cs
- QilTypeChecker.cs
- MenuItemStyle.cs
- RightsManagementSuppressedStream.cs
- TreeNodeCollection.cs
- DispatcherExceptionFilterEventArgs.cs
- CodeArrayIndexerExpression.cs
- FontDifferentiator.cs
- ItemsChangedEventArgs.cs
- JsonReaderDelegator.cs
- XPathNodeHelper.cs
- LoginName.cs
- UnrecognizedPolicyAssertionElement.cs
- KeyEvent.cs
- HwndKeyboardInputProvider.cs
- ZipIOLocalFileBlock.cs
- LostFocusEventManager.cs
- ErrorRuntimeConfig.cs
- InputEventArgs.cs
- MetafileHeader.cs
- GeometryCombineModeValidation.cs
- DrawingContext.cs
- InputScopeAttribute.cs
- SQLConvert.cs
- SrgsDocument.cs
- PageBuildProvider.cs