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
- StyleTypedPropertyAttribute.cs
- TextBoxAutoCompleteSourceConverter.cs
- SaveFileDialog.cs
- RegexStringValidator.cs
- SourceElementsCollection.cs
- CardSpaceSelector.cs
- AdornerLayer.cs
- ImmutableCollection.cs
- DataColumnPropertyDescriptor.cs
- TaskbarItemInfo.cs
- InstanceKeyCompleteException.cs
- TextBoxView.cs
- TemplatePartAttribute.cs
- DbParameterCollection.cs
- ECDsaCng.cs
- WebExceptionStatus.cs
- FunctionDescription.cs
- CommandPlan.cs
- WorkflowEventArgs.cs
- FakeModelPropertyImpl.cs
- RSAProtectedConfigurationProvider.cs
- SafeNativeMethodsCLR.cs
- CorePropertiesFilter.cs
- FixedTextView.cs
- BasicKeyConstraint.cs
- ResourceManagerWrapper.cs
- TransformPattern.cs
- Visual3DCollection.cs
- basenumberconverter.cs
- MarkupObject.cs
- EmptyStringExpandableObjectConverter.cs
- GraphicsPathIterator.cs
- PropertyBuilder.cs
- BamlResourceSerializer.cs
- Exceptions.cs
- XmlExpressionDumper.cs
- PagesChangedEventArgs.cs
- CssClassPropertyAttribute.cs
- ProfileProvider.cs
- SystemWebCachingSectionGroup.cs
- DataGridViewToolTip.cs
- CopyEncoder.cs
- Calendar.cs
- NamespaceMapping.cs
- WindowHelperService.cs
- AffineTransform3D.cs
- BinaryParser.cs
- ToolboxItem.cs
- ServiceBehaviorElementCollection.cs
- VectorConverter.cs
- WindowsHyperlink.cs
- OracleLob.cs
- EncoderParameter.cs
- ParameterCollection.cs
- RegexFCD.cs
- WebPartVerbCollection.cs
- SqlExpander.cs
- SessionIDManager.cs
- SmtpMail.cs
- DialogResultConverter.cs
- WebDisplayNameAttribute.cs
- RangeBaseAutomationPeer.cs
- HttpAsyncResult.cs
- ProfessionalColors.cs
- DelayedRegex.cs
- DataSpaceManager.cs
- _Connection.cs
- ToolBarOverflowPanel.cs
- SystemNetHelpers.cs
- MethodCallTranslator.cs
- SettingsPropertyValue.cs
- BooleanSwitch.cs
- AuthStoreRoleProvider.cs
- RichTextBoxContextMenu.cs
- CmsInterop.cs
- OleDbRowUpdatedEvent.cs
- DataExpression.cs
- ServiceSettingsResponseInfo.cs
- UpdateCompiler.cs
- MetadataProperty.cs
- ConstrainedDataObject.cs
- BinHexDecoder.cs
- TrackingMemoryStreamFactory.cs
- SmtpTransport.cs
- NullableDoubleAverageAggregationOperator.cs
- CharEntityEncoderFallback.cs
- WindowsListBox.cs
- CodeDOMUtility.cs
- ThreadStateException.cs
- GeneralTransform.cs
- MapPathBasedVirtualPathProvider.cs
- mediaeventshelper.cs
- SmiRequestExecutor.cs
- BatchServiceHost.cs
- XmlCodeExporter.cs
- ComponentEditorForm.cs
- FolderBrowserDialog.cs
- StylusPointPropertyInfoDefaults.cs
- UserNamePasswordClientCredential.cs
- Config.cs