Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DrawingVisual.cs
- Buffer.cs
- Geometry3D.cs
- EdmScalarPropertyAttribute.cs
- X509AsymmetricSecurityKey.cs
- PriorityBinding.cs
- TemplateLookupAction.cs
- BoolLiteral.cs
- RoutingExtensionElement.cs
- TypeLibConverter.cs
- CodeMethodInvokeExpression.cs
- IUnknownConstantAttribute.cs
- TimeIntervalCollection.cs
- ListViewUpdatedEventArgs.cs
- FigureParagraph.cs
- Pair.cs
- UserControlParser.cs
- ListViewEditEventArgs.cs
- ObjectDataSourceDisposingEventArgs.cs
- PropertyChangeTracker.cs
- AccessedThroughPropertyAttribute.cs
- StylusPoint.cs
- SrgsElementFactory.cs
- FormatConvertedBitmap.cs
- ExtentCqlBlock.cs
- DataSetViewSchema.cs
- StreamedWorkflowDefinitionContext.cs
- CompilerError.cs
- HwndAppCommandInputProvider.cs
- FixedSOMElement.cs
- GraphicsPath.cs
- SimpleWorkerRequest.cs
- ButtonBase.cs
- HttpListenerException.cs
- ResolveInfo.cs
- NetPeerTcpBinding.cs
- SQLRoleProvider.cs
- StyleTypedPropertyAttribute.cs
- Int64.cs
- EntityDataSourceValidationException.cs
- CodeAttributeDeclaration.cs
- ChannelManager.cs
- UserControlBuildProvider.cs
- Facet.cs
- XmlCollation.cs
- Debug.cs
- COAUTHIDENTITY.cs
- ToolStripLocationCancelEventArgs.cs
- AppSettings.cs
- InputScopeConverter.cs
- PropertyEmitter.cs
- TextServicesContext.cs
- KeySpline.cs
- ScrollableControl.cs
- ThousandthOfEmRealDoubles.cs
- ReadWriteObjectLock.cs
- ObjectMemberMapping.cs
- WmfPlaceableFileHeader.cs
- listviewsubitemcollectioneditor.cs
- SubclassTypeValidatorAttribute.cs
- PackWebRequestFactory.cs
- SignedXml.cs
- SiteMapDataSourceView.cs
- OrthographicCamera.cs
- ComEventsSink.cs
- DataServiceQueryProvider.cs
- EdmFunctionAttribute.cs
- EdmSchemaAttribute.cs
- Calendar.cs
- WebPartHeaderCloseVerb.cs
- PropertyStore.cs
- DecoderExceptionFallback.cs
- CodeAccessSecurityEngine.cs
- WorkflowEventArgs.cs
- OracleCommandBuilder.cs
- Polyline.cs
- ServicesUtilities.cs
- Fonts.cs
- XamlParser.cs
- FileEnumerator.cs
- DBConnectionString.cs
- ConditionValidator.cs
- XmlSchemaFacet.cs
- PeerApplicationLaunchInfo.cs
- KeyConverter.cs
- AutomationPropertyInfo.cs
- RegisteredArrayDeclaration.cs
- GridViewPageEventArgs.cs
- UTF8Encoding.cs
- FocusTracker.cs
- EnterpriseServicesHelper.cs
- Events.cs
- ColorTranslator.cs
- securitycriticaldataformultiplegetandset.cs
- Number.cs
- MemberJoinTreeNode.cs
- AggregateNode.cs
- XmlTextAttribute.cs
- XmlChildEnumerator.cs
- Freezable.cs