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
- HuffModule.cs
- AutomationIdentifierGuids.cs
- JsonQNameDataContract.cs
- PreloadedPackages.cs
- LicenseProviderAttribute.cs
- ExclusiveCanonicalizationTransform.cs
- GeneralTransform3D.cs
- LicenseProviderAttribute.cs
- EventLogReader.cs
- WebControlAdapter.cs
- UriExt.cs
- BinaryMethodMessage.cs
- Matrix.cs
- TypedTableBase.cs
- ObjectSecurity.cs
- RadialGradientBrush.cs
- ValueType.cs
- UpWmlPageAdapter.cs
- base64Transforms.cs
- TableRowsCollectionEditor.cs
- TextDecorationCollectionConverter.cs
- SmiEventStream.cs
- BookmarkUndoUnit.cs
- ComPersistableTypeElementCollection.cs
- PngBitmapEncoder.cs
- ListItemCollection.cs
- ReadOnlyMetadataCollection.cs
- AsymmetricSignatureFormatter.cs
- HttpCapabilitiesEvaluator.cs
- DataTemplateKey.cs
- AssemblyAttributes.cs
- Activator.cs
- _SSPIWrapper.cs
- CodeDefaultValueExpression.cs
- SecurityKeyType.cs
- Function.cs
- DefaultTextStore.cs
- ScriptingRoleServiceSection.cs
- ForeignKeyConstraint.cs
- LogicalTreeHelper.cs
- DataTableCollection.cs
- UnionCodeGroup.cs
- TypeConverterMarkupExtension.cs
- ConfigurationElement.cs
- QilGenerator.cs
- Base64Decoder.cs
- StateDesigner.CommentLayoutGlyph.cs
- FormViewDeletedEventArgs.cs
- AttachedPropertiesService.cs
- DesignerActionService.cs
- DataGridViewRowEventArgs.cs
- InstanceStore.cs
- ConfigurationStrings.cs
- Directory.cs
- OdbcConnectionFactory.cs
- WeakReference.cs
- OpenTypeLayout.cs
- InvokeMethod.cs
- FamilyTypefaceCollection.cs
- SignatureDescription.cs
- TableAutomationPeer.cs
- FormsAuthenticationUser.cs
- SiteMapNodeItem.cs
- PageCatalogPart.cs
- DirectoryObjectSecurity.cs
- Trace.cs
- ISFTagAndGuidCache.cs
- SafeViewOfFileHandle.cs
- FeatureSupport.cs
- OleDbSchemaGuid.cs
- CellParagraph.cs
- GeometryDrawing.cs
- PerfCounters.cs
- LocalizableAttribute.cs
- PartManifestEntry.cs
- LinkArea.cs
- CustomAttributeBuilder.cs
- OrderByQueryOptionExpression.cs
- DbParameterCollectionHelper.cs
- SynchronizedInputProviderWrapper.cs
- HttpCookiesSection.cs
- MaterialGroup.cs
- Cursors.cs
- TreeNodeBindingDepthConverter.cs
- TextWriterTraceListener.cs
- NetNamedPipeBindingCollectionElement.cs
- DataGridViewCellCancelEventArgs.cs
- XslCompiledTransform.cs
- UserControlParser.cs
- PocoPropertyAccessorStrategy.cs
- PieceNameHelper.cs
- Pair.cs
- BufferedReadStream.cs
- UnsafeNativeMethods.cs
- DropSource.cs
- CurrentChangingEventManager.cs
- RubberbandSelector.cs
- DesignTimeXamlWriter.cs
- ChtmlTextWriter.cs
- DictionaryTraceRecord.cs