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
- EventHandlerList.cs
- XmlAttributes.cs
- Assembly.cs
- BaseParagraph.cs
- XmlAttributes.cs
- TimeoutHelper.cs
- ClientTarget.cs
- pingexception.cs
- TextElementAutomationPeer.cs
- CodeSnippetCompileUnit.cs
- XmlDataSourceNodeDescriptor.cs
- MetadataPropertyvalue.cs
- ConfigurationElementProperty.cs
- Sql8ConformanceChecker.cs
- FormDesigner.cs
- OrthographicCamera.cs
- DoubleLinkList.cs
- FormViewRow.cs
- MaskedTextBoxTextEditor.cs
- QilInvoke.cs
- CultureMapper.cs
- AtomServiceDocumentSerializer.cs
- TreeViewAutomationPeer.cs
- BaseResourcesBuildProvider.cs
- UpdateException.cs
- TokenizerHelper.cs
- ProcessModuleCollection.cs
- InvokeGenerator.cs
- GcSettings.cs
- HtmlTableRowCollection.cs
- HttpException.cs
- NameObjectCollectionBase.cs
- DelegateBodyWriter.cs
- HighContrastHelper.cs
- EntityTransaction.cs
- ComponentChangingEvent.cs
- MetaTable.cs
- WindowsListViewGroupHelper.cs
- TypefaceMap.cs
- TreeNodeStyleCollectionEditor.cs
- ProviderUtil.cs
- CancellationTokenSource.cs
- Win32SafeHandles.cs
- XmlWellformedWriter.cs
- SystemFonts.cs
- IsolatedStorageException.cs
- SByteConverter.cs
- Pair.cs
- MaskedTextBoxTextEditorDropDown.cs
- GenericTypeParameterBuilder.cs
- TypeConstant.cs
- DurationConverter.cs
- SoapProtocolReflector.cs
- TextTreeRootNode.cs
- ManipulationPivot.cs
- MissingManifestResourceException.cs
- ScrollBar.cs
- ILGen.cs
- COMException.cs
- IndependentAnimationStorage.cs
- WindowsImpersonationContext.cs
- DataGridViewRowsRemovedEventArgs.cs
- GeneralTransform3DGroup.cs
- DataTableClearEvent.cs
- GeneralTransformGroup.cs
- VectorAnimationUsingKeyFrames.cs
- WebControl.cs
- CanExpandCollapseAllConverter.cs
- StringUtil.cs
- OracleConnectionString.cs
- WebPartCollection.cs
- RefreshEventArgs.cs
- SqlExpressionNullability.cs
- CompiledQuery.cs
- DodSequenceMerge.cs
- SchemaTableOptionalColumn.cs
- SqlDataRecord.cs
- BinaryWriter.cs
- StreamGeometry.cs
- SmtpReplyReader.cs
- UnitySerializationHolder.cs
- DataDocumentXPathNavigator.cs
- _KerberosClient.cs
- CodeIndexerExpression.cs
- WindowsSlider.cs
- MarshalDirectiveException.cs
- XsltArgumentList.cs
- PropertyMapper.cs
- securitycriticaldataformultiplegetandset.cs
- ControlParameter.cs
- TdsEnums.cs
- ObjectIDGenerator.cs
- SineEase.cs
- IndexerNameAttribute.cs
- DataGridView.cs
- WindowsSspiNegotiation.cs
- SQLDateTimeStorage.cs
- RequestQueue.cs
- UnsafeNativeMethodsTablet.cs
- CompositeFontParser.cs