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
- graph.cs
- UnsafeNativeMethods.cs
- Rectangle.cs
- LassoHelper.cs
- CompModSwitches.cs
- Timer.cs
- InvalidCommandTreeException.cs
- DynamicEndpoint.cs
- XmlReaderSettings.cs
- XhtmlConformanceSection.cs
- ADRoleFactoryConfiguration.cs
- RuntimeCompatibilityAttribute.cs
- Function.cs
- AssemblyAssociatedContentFileAttribute.cs
- ApplicationBuildProvider.cs
- ArrayList.cs
- ShapeTypeface.cs
- TextRunTypographyProperties.cs
- WebPartDisplayModeCollection.cs
- BookmarkUndoUnit.cs
- ControlCollection.cs
- ConstraintEnumerator.cs
- HTMLTagNameToTypeMapper.cs
- EditingMode.cs
- hresults.cs
- DialogWindow.cs
- ExtendedTransformFactory.cs
- BaseUriHelper.cs
- XmlTextReaderImplHelpers.cs
- SafeIUnknown.cs
- ManualResetEvent.cs
- ObjectItemNoOpAssemblyLoader.cs
- DiagnosticTrace.cs
- MenuItemCollection.cs
- InputBuffer.cs
- SessionEndingCancelEventArgs.cs
- StorageScalarPropertyMapping.cs
- SessionStateModule.cs
- Vector3DCollection.cs
- Compress.cs
- EndPoint.cs
- BufferedReadStream.cs
- CompiledQuery.cs
- TextReader.cs
- TypedOperationInfo.cs
- CompilerLocalReference.cs
- CompositionTarget.cs
- Expr.cs
- ResourceReader.cs
- UnitySerializationHolder.cs
- MethodExpression.cs
- RepeatBehavior.cs
- MulticastIPAddressInformationCollection.cs
- X509ServiceCertificateAuthenticationElement.cs
- AssociationSet.cs
- Single.cs
- ProfileSection.cs
- ColorMap.cs
- BaseParagraph.cs
- TextDpi.cs
- DataControlHelper.cs
- WebPartAddingEventArgs.cs
- TextEffect.cs
- ExtendLockCommand.cs
- DBBindings.cs
- XmlSchemaFacet.cs
- WpfWebRequestHelper.cs
- PolyLineSegment.cs
- CommonObjectSecurity.cs
- IconBitmapDecoder.cs
- StorageScalarPropertyMapping.cs
- DataGridAutoFormatDialog.cs
- ModuleBuilderData.cs
- FilteredXmlReader.cs
- DesignerCategoryAttribute.cs
- NonValidatingSecurityTokenAuthenticator.cs
- UInt64Storage.cs
- Thumb.cs
- PointAnimationUsingPath.cs
- TextEffectCollection.cs
- XNodeValidator.cs
- QueryAccessibilityHelpEvent.cs
- PropertyEmitter.cs
- WebPartConnection.cs
- DoubleKeyFrameCollection.cs
- ListViewTableCell.cs
- XmlSchemaExternal.cs
- BindingsSection.cs
- ProcessModelInfo.cs
- HtmlHead.cs
- SafeHandles.cs
- SectionUpdates.cs
- handlecollector.cs
- UDPClient.cs
- ProtocolException.cs
- RadioButtonFlatAdapter.cs
- XmlDocument.cs
- WebReferenceOptions.cs
- MemoryMappedViewStream.cs
- CategoryAttribute.cs