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
- CssStyleCollection.cs
- ScaleTransform.cs
- JavaScriptObjectDeserializer.cs
- RadioButton.cs
- DataControlField.cs
- Substitution.cs
- SystemFonts.cs
- TextServicesCompartment.cs
- TopClause.cs
- ProfessionalColors.cs
- StyleSheetRefUrlEditor.cs
- X509LogoTypeExtension.cs
- CodeLabeledStatement.cs
- StickyNoteContentControl.cs
- SqlAliasesReferenced.cs
- processwaithandle.cs
- ByteAnimation.cs
- serverconfig.cs
- XmlSchemaProviderAttribute.cs
- ToolStripDropDown.cs
- sortedlist.cs
- Comparer.cs
- BamlRecords.cs
- ContainerControl.cs
- EndPoint.cs
- ColorConverter.cs
- HashRepartitionStream.cs
- DetailsViewInsertedEventArgs.cs
- ImportDesigner.xaml.cs
- ChangeBlockUndoRecord.cs
- BindingExpressionUncommonField.cs
- SkinBuilder.cs
- QilInvoke.cs
- TextRange.cs
- RawUIStateInputReport.cs
- EncryptedReference.cs
- HebrewCalendar.cs
- TableStyle.cs
- ActiveXHelper.cs
- MemoryRecordBuffer.cs
- LabelDesigner.cs
- PriorityBindingExpression.cs
- SymbolType.cs
- RequiredArgumentAttribute.cs
- HtmlValidatorAdapter.cs
- MachineKeyValidationConverter.cs
- ApplicationException.cs
- DtdParser.cs
- GZipDecoder.cs
- _SslSessionsCache.cs
- XamlGridLengthSerializer.cs
- ToolboxDataAttribute.cs
- InstallerTypeAttribute.cs
- ButtonAutomationPeer.cs
- X509CertificateClaimSet.cs
- OptimisticConcurrencyException.cs
- ListItemsPage.cs
- DesignerOptions.cs
- RSAPKCS1KeyExchangeFormatter.cs
- XPathNodeHelper.cs
- Model3D.cs
- CodeNamespaceImport.cs
- BamlMapTable.cs
- BitmapSizeOptions.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- TextViewDesigner.cs
- AcceleratedTokenProvider.cs
- StreamMarshaler.cs
- FramingEncoders.cs
- ComplexPropertyEntry.cs
- HttpModuleActionCollection.cs
- ConsoleEntryPoint.cs
- CompilerGlobalScopeAttribute.cs
- CheckedPointers.cs
- WebPartDescription.cs
- ParseChildrenAsPropertiesAttribute.cs
- TextElementEnumerator.cs
- Freezable.cs
- WebEvents.cs
- EventLogRecord.cs
- PropertyMetadata.cs
- Composition.cs
- ListViewInsertEventArgs.cs
- MasterPageCodeDomTreeGenerator.cs
- DropDownButton.cs
- EventArgs.cs
- TemplatePropertyEntry.cs
- httpapplicationstate.cs
- DescendentsWalkerBase.cs
- ComponentConverter.cs
- TdsParserHelperClasses.cs
- MetaModel.cs
- COM2ExtendedTypeConverter.cs
- HttpRequestTraceRecord.cs
- DataGridViewBand.cs
- WebPartVerbsEventArgs.cs
- CultureInfo.cs
- ByeOperationCD1AsyncResult.cs
- XmlArrayItemAttributes.cs
- StateRuntime.cs