Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BamlRecordHelper.cs
- NetMsmqSecurity.cs
- DataGridViewSelectedColumnCollection.cs
- EnglishPluralizationService.cs
- URLString.cs
- ContentDesigner.cs
- ConstructorNeedsTagAttribute.cs
- CommandField.cs
- InvalidDataException.cs
- CompositeCollection.cs
- HttpCookiesSection.cs
- PauseStoryboard.cs
- ReturnValue.cs
- PointLightBase.cs
- DataGridViewSelectedRowCollection.cs
- ExceptionUtil.cs
- WorkflowService.cs
- QueryCoreOp.cs
- CorrelationTokenInvalidatedHandler.cs
- TableLayoutStyleCollection.cs
- MSAAWinEventWrap.cs
- BlobPersonalizationState.cs
- CompiledRegexRunner.cs
- ConfigurationLoader.cs
- DataTrigger.cs
- coordinatorfactory.cs
- BlockCollection.cs
- SQLDoubleStorage.cs
- CopyAttributesAction.cs
- PreviewPageInfo.cs
- LinqDataSourceUpdateEventArgs.cs
- ListViewEditEventArgs.cs
- SpnEndpointIdentityExtension.cs
- UserControl.cs
- WorkflowOwnershipException.cs
- DataListItemEventArgs.cs
- RoleGroup.cs
- MSAAEventDispatcher.cs
- IconHelper.cs
- MatrixValueSerializer.cs
- ExpressionTextBox.xaml.cs
- SchemaDeclBase.cs
- DirectoryInfo.cs
- TextEndOfSegment.cs
- BookmarkList.cs
- SafeNativeMethods.cs
- WmlImageAdapter.cs
- ObjectListDesigner.cs
- ProcessModelSection.cs
- Mappings.cs
- SourceSwitch.cs
- DataGridViewCellCollection.cs
- CryptographicAttribute.cs
- Stroke.cs
- securitycriticaldata.cs
- WinInet.cs
- BaseProcessor.cs
- Point.cs
- ScrollBarRenderer.cs
- HttpWriter.cs
- LiteralTextContainerControlBuilder.cs
- LostFocusEventManager.cs
- DetectRunnableInstancesTask.cs
- mactripleDES.cs
- Point3DKeyFrameCollection.cs
- TypeEnumerableViewSchema.cs
- SmtpNetworkElement.cs
- ExpressionNode.cs
- ToolboxItem.cs
- Registry.cs
- ToolStripLocationCancelEventArgs.cs
- TagMapInfo.cs
- RowCache.cs
- DataViewSetting.cs
- SqlEnums.cs
- EntitySetRetriever.cs
- SQLInt32.cs
- HtmlHead.cs
- WebDisplayNameAttribute.cs
- Tokenizer.cs
- TimeSpan.cs
- ACL.cs
- HttpCacheParams.cs
- ListView.cs
- FlowLayoutPanel.cs
- Italic.cs
- GenericEnumConverter.cs
- ApplicationHost.cs
- PageParser.cs
- DataGridViewComboBoxEditingControl.cs
- MexServiceChannelBuilder.cs
- Int16AnimationBase.cs
- DoubleAnimation.cs
- DataGridViewRowCancelEventArgs.cs
- DashStyles.cs
- StringUtil.cs
- DataGridViewSelectedCellCollection.cs
- RootBuilder.cs
- CodeObjectCreateExpression.cs
- _TransmitFileOverlappedAsyncResult.cs