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
- PolicyException.cs
- ResourceSet.cs
- QuotedPrintableStream.cs
- ParameterModifier.cs
- CheckBoxList.cs
- UDPClient.cs
- DataTableReaderListener.cs
- XmlSchemaSimpleContentRestriction.cs
- RegistryExceptionHelper.cs
- SerializationException.cs
- Boolean.cs
- InfoCard.cs
- RegexStringValidator.cs
- ItemList.cs
- MasterPageCodeDomTreeGenerator.cs
- ColorMatrix.cs
- RepeatInfo.cs
- ManualResetEvent.cs
- RequestStatusBarUpdateEventArgs.cs
- ClientBuildManager.cs
- MeasurementDCInfo.cs
- GCHandleCookieTable.cs
- XmlRootAttribute.cs
- SemanticBasicElement.cs
- PatternMatcher.cs
- RequestBringIntoViewEventArgs.cs
- ElementHostAutomationPeer.cs
- InheritablePropertyChangeInfo.cs
- FacetEnabledSchemaElement.cs
- SqlAggregateChecker.cs
- DiscoveryCallbackBehavior.cs
- UnmanagedBitmapWrapper.cs
- _NetRes.cs
- CodeGotoStatement.cs
- DoubleAnimation.cs
- DomainUpDown.cs
- EventQueueState.cs
- DesignerActionUIService.cs
- EdmProviderManifest.cs
- UserPersonalizationStateInfo.cs
- DataColumnChangeEvent.cs
- ReadOnlyAttribute.cs
- RectKeyFrameCollection.cs
- PathGradientBrush.cs
- UpdateException.cs
- PropertyConverter.cs
- AsyncOperation.cs
- Debug.cs
- DataObjectCopyingEventArgs.cs
- SqlDataSourceView.cs
- BoundingRectTracker.cs
- XmlSchema.cs
- StorageComplexPropertyMapping.cs
- Script.cs
- PackageFilter.cs
- AssemblyInfo.cs
- RelationshipSet.cs
- EventMappingSettings.cs
- FormatStringEditor.cs
- InteropAutomationProvider.cs
- Vector3dCollection.cs
- XsdValidatingReader.cs
- GlyphRunDrawing.cs
- HwndStylusInputProvider.cs
- ContextProperty.cs
- UTF32Encoding.cs
- DesignerTextViewAdapter.cs
- Mapping.cs
- DefaultPropertyAttribute.cs
- PeerNearMe.cs
- SqlDependencyUtils.cs
- RowsCopiedEventArgs.cs
- FigureHelper.cs
- ResourceDisplayNameAttribute.cs
- HttpPostServerProtocol.cs
- XmlDictionaryString.cs
- documentsequencetextpointer.cs
- StreamGeometryContext.cs
- StoryFragments.cs
- ArgumentOutOfRangeException.cs
- XmlMtomWriter.cs
- Byte.cs
- WorkflowApplicationIdleEventArgs.cs
- PageAdapter.cs
- EnumBuilder.cs
- Scripts.cs
- ObjectAnimationBase.cs
- ThreadStateException.cs
- SymmetricAlgorithm.cs
- XmlQueryContext.cs
- HotSpot.cs
- StopStoryboard.cs
- HtmlImage.cs
- FontFamily.cs
- WebPartHelpVerb.cs
- XmlAnyElementAttribute.cs
- DeclaredTypeValidator.cs
- UnsafeMethods.cs
- AuthorizationContext.cs
- ListBoxItemAutomationPeer.cs