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
- QueryContinueDragEventArgs.cs
- StringStorage.cs
- MULTI_QI.cs
- DataSourceControlBuilder.cs
- Directory.cs
- ApplicationServiceHelper.cs
- TableCellCollection.cs
- SemaphoreFullException.cs
- StsCommunicationException.cs
- ModelVisual3D.cs
- DataGridViewImageColumn.cs
- NotifyParentPropertyAttribute.cs
- DataControlFieldTypeEditor.cs
- XmlAttributeOverrides.cs
- CustomCredentialPolicy.cs
- AdjustableArrowCap.cs
- SocketPermission.cs
- MethodCallTranslator.cs
- TypeConverterHelper.cs
- StringUtil.cs
- StringArrayConverter.cs
- GeneralTransform3DGroup.cs
- ObjectDataSourceView.cs
- Propagator.JoinPropagator.cs
- AnimationStorage.cs
- TabletCollection.cs
- HierarchicalDataSourceDesigner.cs
- SetStoryboardSpeedRatio.cs
- FlowDocumentFormatter.cs
- XpsResource.cs
- TypeDescriptor.cs
- FormDesigner.cs
- ToolboxItem.cs
- CompiledXpathExpr.cs
- ZoneButton.cs
- SecurityHelper.cs
- DataKey.cs
- BindingElementExtensionElement.cs
- ArgumentReference.cs
- GridViewDeletedEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- StreamInfo.cs
- GlyphInfoList.cs
- VerticalAlignConverter.cs
- mda.cs
- ReaderContextStackData.cs
- SoapInteropTypes.cs
- CancellationTokenSource.cs
- CaretElement.cs
- BrowserCapabilitiesFactory35.cs
- Errors.cs
- ChangeBlockUndoRecord.cs
- EnumType.cs
- XsltInput.cs
- PermissionAttributes.cs
- StringFormat.cs
- DatePickerTextBox.cs
- User.cs
- DataControlFieldHeaderCell.cs
- StringComparer.cs
- ProfessionalColors.cs
- CollectionViewSource.cs
- FamilyTypefaceCollection.cs
- FlowDocumentReaderAutomationPeer.cs
- OleDbConnectionInternal.cs
- LinkUtilities.cs
- Region.cs
- ToolStripContainer.cs
- StringToken.cs
- X509Chain.cs
- ButtonRenderer.cs
- MetadataArtifactLoaderResource.cs
- RadioButtonPopupAdapter.cs
- EdmProviderManifest.cs
- XmlDataLoader.cs
- DataService.cs
- PropertyPath.cs
- _RequestCacheProtocol.cs
- StandardCommands.cs
- TextTreeTextBlock.cs
- TileBrush.cs
- CommandBinding.cs
- LocalizedNameDescriptionPair.cs
- OrderedDictionary.cs
- ViewStateModeByIdAttribute.cs
- Attributes.cs
- MessageBuffer.cs
- exports.cs
- ResourceReferenceExpressionConverter.cs
- AggregateException.cs
- XmlObjectSerializerWriteContextComplex.cs
- StaticExtension.cs
- ellipse.cs
- SHA512Cng.cs
- ContentDisposition.cs
- DataObjectMethodAttribute.cs
- RequestCachingSection.cs
- documentsequencetextview.cs
- CategoryGridEntry.cs
- ManifestSignatureInformation.cs