Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / Security / RightsManagement / RightNameExpirationInfoPair.cs / 1305600 / 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: IgorBel: 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Merger.cs
- CmsInterop.cs
- TreeBuilder.cs
- DecoderFallback.cs
- Decoder.cs
- ListBoxItemWrapperAutomationPeer.cs
- ActivityDesignerHelper.cs
- BuildProviderCollection.cs
- RuleSettings.cs
- ISessionStateStore.cs
- TTSVoice.cs
- AnnouncementEventArgs.cs
- TraceListeners.cs
- PathFigureCollection.cs
- WorkflowApplicationAbortedException.cs
- AutomationProperty.cs
- RMEnrollmentPage3.cs
- RequestCachingSection.cs
- SmtpTransport.cs
- BindingContext.cs
- PlainXmlDeserializer.cs
- InnerItemCollectionView.cs
- DbConnectionClosed.cs
- ItemCheckedEvent.cs
- DispatchOperation.cs
- FrameworkElementAutomationPeer.cs
- MatrixTransform3D.cs
- HtmlValidationSummaryAdapter.cs
- InputLangChangeRequestEvent.cs
- RunClient.cs
- XmlLoader.cs
- CodeAssignStatement.cs
- CodeRegionDirective.cs
- TextChange.cs
- IntellisenseTextBox.designer.cs
- PropertyTab.cs
- ToolboxItemSnapLineBehavior.cs
- PageEventArgs.cs
- ControlLocalizer.cs
- MemoryFailPoint.cs
- SuspendDesigner.cs
- ResourceDictionary.cs
- DataGridViewRowStateChangedEventArgs.cs
- ApplicationSecurityInfo.cs
- AssemblySettingAttributes.cs
- SchemaNotation.cs
- MdiWindowListItemConverter.cs
- FlowDocument.cs
- DesignTimeParseData.cs
- CollectionViewGroup.cs
- InputProcessorProfilesLoader.cs
- DocumentPageView.cs
- SrgsElement.cs
- PropertyOverridesTypeEditor.cs
- Tile.cs
- InstanceNotReadyException.cs
- ScrollContentPresenter.cs
- NullableFloatMinMaxAggregationOperator.cs
- IItemContainerGenerator.cs
- StorageEntityTypeMapping.cs
- ViewgenGatekeeper.cs
- FillRuleValidation.cs
- XmlRawWriter.cs
- ConstrainedDataObject.cs
- __FastResourceComparer.cs
- RightsManagementSuppressedStream.cs
- BrowserCapabilitiesFactory.cs
- SQLString.cs
- SymmetricKeyWrap.cs
- ZeroOpNode.cs
- FieldTemplateUserControl.cs
- XmlConvert.cs
- DesignerForm.cs
- SafeEventLogReadHandle.cs
- XsltConvert.cs
- ValueUnavailableException.cs
- BinaryFormatterWriter.cs
- AuthorizationRuleCollection.cs
- SupportingTokenBindingElement.cs
- BufferBuilder.cs
- DesignerProperties.cs
- SharedPerformanceCounter.cs
- TableItemStyle.cs
- TextEditorCharacters.cs
- regiisutil.cs
- ToolStripContentPanelRenderEventArgs.cs
- TransformerConfigurationWizardBase.cs
- Size3DConverter.cs
- RoutingBehavior.cs
- ExportOptions.cs
- NestPullup.cs
- ProfileParameter.cs
- PopupEventArgs.cs
- InvalidCastException.cs
- Soap12ProtocolReflector.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- ArglessEventHandlerProxy.cs
- DoWorkEventArgs.cs
- Sql8ExpressionRewriter.cs
- SHA384Managed.cs