Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Base / MS / Internal / Permissions / CompoundFileIOPermission.cs / 1 / CompoundFileIOPermission.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//
// Description: CompoundFile IO Permission.
// It is a class for permission that will be asserted/demanded internally.
// Only XPSViewer (or Mongoose) code will assert this permission.
//
// Using it allows the following:
// We can have very specific targeted asserts for enabling EncryptedPackageEnevelope
// and CompoundFile IO APIs.
// This is to provide a granular permission for CompoundFile IO operations to be used
// by XPSViewer to enable Encrypted Documents scenarios in Partial Trust
// rather than asserting broader permission such as Unmanaged Code
//
// !!!! Warning !!!!: No code other than XPSViewer (or Mongoose) should assert this
// permission without agreement from this code owners.
//
// History:
// 02/10/06 : younggk - Created
//---------------------------------------------------------------------------
using System;
using System.Text;
using System.Security;
using System.Security.Permissions;
using System.Windows;
using MS.Internal.WindowsBase;
namespace MS.Internal.Permissions
{
// !!!! Warning !!!!: No code other than XPSViewer (or Mongoose) should assert this
// permission without agreement from this code owners.
[FriendAccessAllowed]
internal class CompoundFileIOPermission : InternalPermissionBase
{
public CompoundFileIOPermission() : base()
{
}
public override IPermission Copy()
{
// There is no state: just return a new instance of CompoudFileIOPermission
return new CompoundFileIOPermission();
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//
// Description: CompoundFile IO Permission.
// It is a class for permission that will be asserted/demanded internally.
// Only XPSViewer (or Mongoose) code will assert this permission.
//
// Using it allows the following:
// We can have very specific targeted asserts for enabling EncryptedPackageEnevelope
// and CompoundFile IO APIs.
// This is to provide a granular permission for CompoundFile IO operations to be used
// by XPSViewer to enable Encrypted Documents scenarios in Partial Trust
// rather than asserting broader permission such as Unmanaged Code
//
// !!!! Warning !!!!: No code other than XPSViewer (or Mongoose) should assert this
// permission without agreement from this code owners.
//
// History:
// 02/10/06 : younggk - Created
//---------------------------------------------------------------------------
using System;
using System.Text;
using System.Security;
using System.Security.Permissions;
using System.Windows;
using MS.Internal.WindowsBase;
namespace MS.Internal.Permissions
{
// !!!! Warning !!!!: No code other than XPSViewer (or Mongoose) should assert this
// permission without agreement from this code owners.
[FriendAccessAllowed]
internal class CompoundFileIOPermission : InternalPermissionBase
{
public CompoundFileIOPermission() : base()
{
}
public override IPermission Copy()
{
// There is no state: just return a new instance of CompoudFileIOPermission
return new CompoundFileIOPermission();
}
}
}
// 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
- ObjectRef.cs
- ListItemCollection.cs
- CapabilitiesPattern.cs
- BitmapEffectOutputConnector.cs
- COM2ComponentEditor.cs
- FullTextBreakpoint.cs
- GeometryDrawing.cs
- PrimitiveXmlSerializers.cs
- ComboBoxAutomationPeer.cs
- BitmapDownload.cs
- CellQuery.cs
- StylusPointCollection.cs
- QueryResponse.cs
- CompositeCollectionView.cs
- TablePatternIdentifiers.cs
- CodeDirectiveCollection.cs
- Monitor.cs
- HashAlgorithm.cs
- ArraySubsetEnumerator.cs
- UserUseLicenseDictionaryLoader.cs
- sqlcontext.cs
- TraceEventCache.cs
- CaseExpr.cs
- WindowsRebar.cs
- SqlDataSourceParameterParser.cs
- RTLAwareMessageBox.cs
- Content.cs
- PropertyOrder.cs
- PointLightBase.cs
- DataGridBoolColumn.cs
- SamlAttributeStatement.cs
- ListItemCollection.cs
- sqlinternaltransaction.cs
- Utility.cs
- Matrix.cs
- EventlogProvider.cs
- ZipIOFileItemStream.cs
- SchemaNotation.cs
- ServicesExceptionNotHandledEventArgs.cs
- PeerNameRecord.cs
- ToolStripItemClickedEventArgs.cs
- DecoderExceptionFallback.cs
- WebPartHelpVerb.cs
- JapaneseCalendar.cs
- CollectionContainer.cs
- BindingMemberInfo.cs
- EnumerableValidator.cs
- ArrayConverter.cs
- RuleInfoComparer.cs
- ConfigurationStrings.cs
- TypeInitializationException.cs
- DBSqlParserColumn.cs
- EntityDataSourceContextCreatedEventArgs.cs
- SqlTypeConverter.cs
- EventSetter.cs
- SystemGatewayIPAddressInformation.cs
- InlineCollection.cs
- UInt32.cs
- EventData.cs
- MaterializeFromAtom.cs
- DeferrableContent.cs
- SqlUtil.cs
- AddInPipelineAttributes.cs
- DesignerVerb.cs
- XmlSchemaValidator.cs
- MatrixIndependentAnimationStorage.cs
- TypeElement.cs
- DocumentApplicationState.cs
- VSWCFServiceContractGenerator.cs
- InvokeMethodActivityDesigner.cs
- MediaContext.cs
- SqlDataReader.cs
- SchemaHelper.cs
- AssemblyBuilder.cs
- StringKeyFrameCollection.cs
- UserInitiatedNavigationPermission.cs
- MethodCallExpression.cs
- EditorPartChrome.cs
- XmlDataImplementation.cs
- WaitHandleCannotBeOpenedException.cs
- ReliableChannelFactory.cs
- GrowingArray.cs
- IconConverter.cs
- Vector3DCollection.cs
- LexicalChunk.cs
- TypeSemantics.cs
- XmlQueryStaticData.cs
- TextEffectResolver.cs
- GroupByExpressionRewriter.cs
- compensatingcollection.cs
- Action.cs
- SerializationStore.cs
- GCHandleCookieTable.cs
- Viewport2DVisual3D.cs
- CacheDependency.cs
- Stream.cs
- TrustLevel.cs
- TextFindEngine.cs
- QilList.cs
- ChannelEndpointElementCollection.cs