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
- ProfilePropertySettingsCollection.cs
- RegexCapture.cs
- FamilyMap.cs
- BamlLocalizationDictionary.cs
- ModelItemDictionaryImpl.cs
- Delegate.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- FusionWrap.cs
- InstanceKeyView.cs
- SizeIndependentAnimationStorage.cs
- CodeObjectCreateExpression.cs
- SafeCertificateContext.cs
- ResourceExpressionBuilder.cs
- CapiSafeHandles.cs
- PersistChildrenAttribute.cs
- XPathExpr.cs
- SelectionPattern.cs
- NaturalLanguageHyphenator.cs
- ServiceBuildProvider.cs
- SHA1Cng.cs
- TextEditorCopyPaste.cs
- CodePrimitiveExpression.cs
- CollectionsUtil.cs
- DesignerWebPartChrome.cs
- ArgumentReference.cs
- WindowPattern.cs
- OrderedDictionary.cs
- MimeTypeMapper.cs
- ListControlStringCollectionEditor.cs
- PasswordTextNavigator.cs
- DataObject.cs
- CSharpCodeProvider.cs
- SpStreamWrapper.cs
- ControlEvent.cs
- ControlCollection.cs
- ServicePointManagerElement.cs
- RegexMatchCollection.cs
- StringToken.cs
- lengthconverter.cs
- ThemeInfoAttribute.cs
- ConstructorNeedsTagAttribute.cs
- FixedElement.cs
- TabItem.cs
- DisplayInformation.cs
- SoapObjectInfo.cs
- ResetableIterator.cs
- Table.cs
- WebConfigurationHost.cs
- BindToObject.cs
- ImageInfo.cs
- coordinator.cs
- UnsafeNativeMethods.cs
- CodeTypeDelegate.cs
- GeometryGroup.cs
- PropertyMapper.cs
- UniqueConstraint.cs
- SkewTransform.cs
- WebPartZone.cs
- PointAnimationBase.cs
- FontFamilyValueSerializer.cs
- HtmlTextViewAdapter.cs
- Baml2006KeyRecord.cs
- SqlConnectionHelper.cs
- RtfToken.cs
- ListViewGroup.cs
- HtmlButton.cs
- ToolBar.cs
- FlagPanel.cs
- EmbeddedMailObject.cs
- ThousandthOfEmRealDoubles.cs
- OptimalBreakSession.cs
- TCEAdapterGenerator.cs
- MachineKeySection.cs
- HttpModulesSection.cs
- ToolboxItemLoader.cs
- QuestionEventArgs.cs
- UnauthorizedAccessException.cs
- DtdParser.cs
- XMLSchema.cs
- CodeStatementCollection.cs
- RpcResponse.cs
- RuntimeArgument.cs
- SchemaNamespaceManager.cs
- HandleRef.cs
- TemplateBaseAction.cs
- Debug.cs
- WebPartEditorOkVerb.cs
- SettingsPropertyCollection.cs
- WebReferencesBuildProvider.cs
- CreateUserErrorEventArgs.cs
- TrustLevelCollection.cs
- WaitForChangedResult.cs
- ImageAnimator.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- RowTypePropertyElement.cs
- TabControl.cs
- XmlIlGenerator.cs
- EditorPartChrome.cs
- UniqueEventHelper.cs
- RecipientInfo.cs