Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / MS / Internal / Security / RightsManagement / RightNameExpirationInfoPair.cs / 1 / RightNameExpirationInfoPair.cs
//------------------------------------------------------------------------------ // //// Copyright (c) Microsoft Corporation. All rights reserved. // // // Description: // Structure that keeps Right name as a string not as enum, so it can be used to carry // names that are not part of the ContentRights enum. // // History: // 01/31/2006: [....]: Initial implementation. // //----------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Security; namespace MS.Internal.Security.RightsManagement { ////// Critical: This class exposes access to methods that eventually do one or more of the the following /// 1. call into unmanaged code /// 2. affects state/data that will eventually cross over unmanaged code boundary /// 3. Return some RM related information which is considered private /// [SecurityCritical(SecurityCriticalScope.Everything)] internal class RightNameExpirationInfoPair { internal RightNameExpirationInfoPair (string rightName, DateTime validFrom, DateTime validUntil) { Debug.Assert(rightName != null); _rightName = rightName; _validFrom = validFrom; _validUntil = validUntil; } ////// We keep Right as a string for forward compatibility in case new /// rights get invented we would like be able to encrypt decrypt using them, /// although without ability to enumerate them /// internal string RightName { get { return _rightName; } } ////// The starting validity time, in UTC time /// internal DateTime ValidFrom { get { return _validFrom; } } ////// The ending validity time, in UTC time /// internal DateTime ValidUntil { get { return _validUntil; } } private string _rightName; private DateTime _validFrom; private DateTime _validUntil; } } // 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
- EventListenerClientSide.cs
- Util.cs
- DynamicExpression.cs
- WebConfigManager.cs
- DataBindingExpressionBuilder.cs
- ColorPalette.cs
- DataServiceQueryException.cs
- GPPOINTF.cs
- VisualStyleRenderer.cs
- shaperfactoryquerycachekey.cs
- CompilerCollection.cs
- HttpValueCollection.cs
- AdapterUtil.cs
- ObjectSpanRewriter.cs
- XmlSchema.cs
- MemberAccessException.cs
- ToolStripRenderEventArgs.cs
- XmlTextReader.cs
- ScriptingSectionGroup.cs
- MemoryPressure.cs
- NotificationContext.cs
- DataTableNameHandler.cs
- ResourcePermissionBase.cs
- AffineTransform3D.cs
- ConfigurationManagerHelper.cs
- SrgsOneOf.cs
- EventsTab.cs
- ObjectItemCachedAssemblyLoader.cs
- SubMenuStyle.cs
- WebPageTraceListener.cs
- ConfigXmlWhitespace.cs
- UriWriter.cs
- SqlDataSourceQueryConverter.cs
- CodeParameterDeclarationExpression.cs
- CheckPair.cs
- WebPartZone.cs
- FileChangesMonitor.cs
- ValidationSummary.cs
- Mapping.cs
- ClientSession.cs
- Latin1Encoding.cs
- serverconfig.cs
- SimpleTextLine.cs
- TreeNodeConverter.cs
- ListViewTableRow.cs
- HttpVersion.cs
- Aggregates.cs
- WindowsSpinner.cs
- TdsParameterSetter.cs
- CharacterString.cs
- ConnectionPoint.cs
- TextServicesDisplayAttribute.cs
- TimelineGroup.cs
- PathFigure.cs
- WebConfigurationHostFileChange.cs
- ContextMenuStrip.cs
- TraceListeners.cs
- MergePropertyDescriptor.cs
- XmlAttributeCollection.cs
- TextEffectCollection.cs
- PrinterUnitConvert.cs
- XmlILOptimizerVisitor.cs
- Queue.cs
- IisTraceWebEventProvider.cs
- Vars.cs
- RoleManagerModule.cs
- SafeCertificateContext.cs
- __Filters.cs
- OperationGenerator.cs
- PathData.cs
- Point.cs
- Console.cs
- XpsSerializerWriter.cs
- FixedPage.cs
- CrossAppDomainChannel.cs
- UriTemplateEquivalenceComparer.cs
- MLangCodePageEncoding.cs
- DbMetaDataCollectionNames.cs
- HtmlInputFile.cs
- DocumentSequenceHighlightLayer.cs
- ImageMetadata.cs
- FlowNode.cs
- TagNameToTypeMapper.cs
- PageTheme.cs
- Brushes.cs
- XsltArgumentList.cs
- XmlIgnoreAttribute.cs
- CellConstant.cs
- SafeHandle.cs
- LinqDataSourceStatusEventArgs.cs
- AutomationElement.cs
- RuntimeResourceSet.cs
- BinHexEncoder.cs
- documentation.cs
- KnownTypesProvider.cs
- BlobPersonalizationState.cs
- BindStream.cs
- BitmapEffectrendercontext.cs
- DrawListViewSubItemEventArgs.cs
- DataAccessor.cs