Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / Permissions / CompoundFileIOPermission.cs / 1305600 / 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 : [....] - 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. [Serializable] [FriendAccessAllowed] internal class CompoundFileIOPermission : InternalParameterlessPermissionBase { public CompoundFileIOPermission() : this(PermissionState.Unrestricted) { } public CompoundFileIOPermission(PermissionState state): base(state) { } 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 : [....] - 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. [Serializable] [FriendAccessAllowed] internal class CompoundFileIOPermission : InternalParameterlessPermissionBase { public CompoundFileIOPermission() : this(PermissionState.Unrestricted) { } public CompoundFileIOPermission(PermissionState state): base(state) { } 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
- InheritedPropertyChangedEventArgs.cs
- LookupNode.cs
- DataSourceDesigner.cs
- CodeMethodReturnStatement.cs
- BasicExpressionVisitor.cs
- WindowsSlider.cs
- WebPartTransformerAttribute.cs
- DataGridViewTopRowAccessibleObject.cs
- WebSysDefaultValueAttribute.cs
- BindingSource.cs
- PrefixQName.cs
- CodeBlockBuilder.cs
- future.cs
- NetDataContractSerializer.cs
- AsnEncodedData.cs
- DataGridViewRowPrePaintEventArgs.cs
- PriorityRange.cs
- ConnectionConsumerAttribute.cs
- RegexGroupCollection.cs
- ItemList.cs
- StateItem.cs
- ExtensionSurface.cs
- WhitespaceSignificantCollectionAttribute.cs
- ElementAction.cs
- HTMLTagNameToTypeMapper.cs
- AssemblyAssociatedContentFileAttribute.cs
- BindingCompleteEventArgs.cs
- CqlErrorHelper.cs
- ellipse.cs
- DbDataSourceEnumerator.cs
- TypedTableBase.cs
- AssociatedControlConverter.cs
- WebScriptEnablingElement.cs
- CodeDirectionExpression.cs
- WinFormsUtils.cs
- ShaperBuffers.cs
- ContextProperty.cs
- NamespaceCollection.cs
- SpotLight.cs
- SafeLocalMemHandle.cs
- InstancePersistenceContext.cs
- _NativeSSPI.cs
- QilValidationVisitor.cs
- JournalEntry.cs
- xmlformatgeneratorstatics.cs
- DictionaryTraceRecord.cs
- RolePrincipal.cs
- loginstatus.cs
- XmlText.cs
- SettingsPropertyWrongTypeException.cs
- HostedElements.cs
- DataGridViewRowsRemovedEventArgs.cs
- BatchWriter.cs
- SqlParameterCollection.cs
- PropertyReferenceSerializer.cs
- UpdateCompiler.cs
- SerTrace.cs
- DataGridViewCellParsingEventArgs.cs
- HttpWebRequestElement.cs
- HttpListenerResponse.cs
- DefaultMemberAttribute.cs
- ObjectDataSourceEventArgs.cs
- DataServiceException.cs
- AlternateViewCollection.cs
- PropertyGridEditorPart.cs
- IResourceProvider.cs
- FormsAuthenticationTicket.cs
- DiscoveryServerProtocol.cs
- MappingException.cs
- Brush.cs
- OdbcConnectionFactory.cs
- LoginNameDesigner.cs
- DateTimeParse.cs
- DispatcherObject.cs
- TextContainerChangeEventArgs.cs
- UpdatePanelTrigger.cs
- OletxResourceManager.cs
- ScriptingJsonSerializationSection.cs
- FieldBuilder.cs
- ResXResourceWriter.cs
- StylusButtonCollection.cs
- SoapMessage.cs
- EncryptedXml.cs
- XamlToRtfParser.cs
- CompositeFontInfo.cs
- XmlNodeComparer.cs
- HiddenField.cs
- AnnotationObservableCollection.cs
- ExtendedProperty.cs
- RowToFieldTransformer.cs
- HtmlLinkAdapter.cs
- TransactionContextValidator.cs
- XPathParser.cs
- DefaultPrintController.cs
- FormViewDeleteEventArgs.cs
- sortedlist.cs
- TextEditorDragDrop.cs
- XPathExpr.cs
- FixedSOMTable.cs
- CompilerGeneratedAttribute.cs