Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Effects / embossbitmapeffect.cs / 1407647 / embossbitmapeffect.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2005 // // File: BitmapEffectEmboss.cs //----------------------------------------------------------------------------- #region Using directives using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Security; using SecurityHelper=MS.Internal.SecurityHelper; #endregion namespace System.Windows.Media.Effects { ////// The class definition for EmbossBitmapEffect /// public partial class EmbossBitmapEffect { ////// Constructor /// public EmbossBitmapEffect() { } ////// Creates the unmanaged effect handle /// ////// Critical - returns a security critical type SafeHandle. /// Safe - Always returns null. /// [SecuritySafeCritical] [Obsolete(MS.Internal.Media.VisualTreeUtils.BitmapEffectObsoleteMessage)] unsafe protected override SafeHandle CreateUnmanagedEffect() { return null; } ////// /// Update (propagetes) properties to the unmanaged effect /// ////// This method demands permission because effects should not be run /// in partial trust. /// /// SecurityCritical - because SetValue has a link demand /// SecutiryTreatAsSafe - because it demans UIWindow permission /// [SecurityCritical, SecurityTreatAsSafe] [Obsolete(MS.Internal.Media.VisualTreeUtils.BitmapEffectObsoleteMessage)] protected override void UpdateUnmanagedPropertyState(SafeHandle unmanagedEffect) { SecurityHelper.DemandUIWindowPermission(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2005 // // File: BitmapEffectEmboss.cs //----------------------------------------------------------------------------- #region Using directives using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Security; using SecurityHelper=MS.Internal.SecurityHelper; #endregion namespace System.Windows.Media.Effects { ////// The class definition for EmbossBitmapEffect /// public partial class EmbossBitmapEffect { ////// Constructor /// public EmbossBitmapEffect() { } ////// Creates the unmanaged effect handle /// ////// Critical - returns a security critical type SafeHandle. /// Safe - Always returns null. /// [SecuritySafeCritical] [Obsolete(MS.Internal.Media.VisualTreeUtils.BitmapEffectObsoleteMessage)] unsafe protected override SafeHandle CreateUnmanagedEffect() { return null; } ////// /// Update (propagetes) properties to the unmanaged effect /// ////// This method demands permission because effects should not be run /// in partial trust. /// /// SecurityCritical - because SetValue has a link demand /// SecutiryTreatAsSafe - because it demans UIWindow permission /// [SecurityCritical, SecurityTreatAsSafe] [Obsolete(MS.Internal.Media.VisualTreeUtils.BitmapEffectObsoleteMessage)] protected override void UpdateUnmanagedPropertyState(SafeHandle unmanagedEffect) { SecurityHelper.DemandUIWindowPermission(); } } } // 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
- Rfc4050KeyFormatter.cs
- BooleanProjectedSlot.cs
- DATA_BLOB.cs
- TextRunCacheImp.cs
- CodeTypeOfExpression.cs
- BidPrivateBase.cs
- FontSourceCollection.cs
- ConfigurationManagerHelper.cs
- TableLayoutStyleCollection.cs
- HTMLTagNameToTypeMapper.cs
- CryptoProvider.cs
- ProfileService.cs
- TextTreePropertyUndoUnit.cs
- RepeaterItemEventArgs.cs
- FormsAuthenticationEventArgs.cs
- FrameworkReadOnlyPropertyMetadata.cs
- CreateParams.cs
- ZipFileInfoCollection.cs
- ObjectManager.cs
- Root.cs
- CodeCompiler.cs
- Choices.cs
- ForAllOperator.cs
- SynchronizedPool.cs
- DataGridItemCollection.cs
- PrivilegeNotHeldException.cs
- TraceFilter.cs
- TableLayoutPanelCellPosition.cs
- CustomCredentialPolicy.cs
- HandlerBase.cs
- LayoutSettings.cs
- DecimalAnimation.cs
- HtmlHistory.cs
- IIS7UserPrincipal.cs
- FormViewPageEventArgs.cs
- LineBreak.cs
- itemelement.cs
- IntegerFacetDescriptionElement.cs
- DrawingGroup.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- Int64KeyFrameCollection.cs
- QilTypeChecker.cs
- ParallelSeparator.xaml.cs
- FindSimilarActivitiesVerb.cs
- RoleService.cs
- ScriptControlDescriptor.cs
- TripleDES.cs
- MimeReflector.cs
- ExpandCollapseIsCheckedConverter.cs
- SafeBitVector32.cs
- ExtendedPropertyCollection.cs
- RegisteredDisposeScript.cs
- OptimalTextSource.cs
- Operand.cs
- ElapsedEventArgs.cs
- GreenMethods.cs
- FastEncoder.cs
- Walker.cs
- DrawingContextWalker.cs
- SelfIssuedSamlTokenFactory.cs
- CLRBindingWorker.cs
- RelativeSource.cs
- CultureInfoConverter.cs
- WrapperSecurityCommunicationObject.cs
- TearOffProxy.cs
- MarshalByRefObject.cs
- LinkUtilities.cs
- EdmScalarPropertyAttribute.cs
- DynamicPhysicalDiscoSearcher.cs
- ZipIOExtraField.cs
- CreationContext.cs
- TemplateApplicationHelper.cs
- WmlCommandAdapter.cs
- OdbcUtils.cs
- WindowsGrip.cs
- PerformanceCounter.cs
- MetaModel.cs
- EntityCommand.cs
- ListViewInsertedEventArgs.cs
- ListViewAutomationPeer.cs
- GPRECT.cs
- DbProviderFactory.cs
- RemotingException.cs
- ValueProviderWrapper.cs
- DataGridViewCellStyleChangedEventArgs.cs
- HttpRequestCacheValidator.cs
- Int32KeyFrameCollection.cs
- OdbcConnection.cs
- ExpressionPrefixAttribute.cs
- SpeakCompletedEventArgs.cs
- MessageBox.cs
- Brush.cs
- VirtualizedContainerService.cs
- OpenTypeLayout.cs
- HMACRIPEMD160.cs
- ConstrainedDataObject.cs
- ECDiffieHellmanCngPublicKey.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- DataGridComboBoxColumn.cs
- DbConnectionStringCommon.cs