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
- ToolboxItem.cs
- ResourceExpression.cs
- SetterBase.cs
- InputReport.cs
- _TLSstream.cs
- BinaryMethodMessage.cs
- String.cs
- RequestResizeEvent.cs
- ButtonStandardAdapter.cs
- DirectoryInfo.cs
- uribuilder.cs
- CompositeFontInfo.cs
- PhonemeConverter.cs
- RenameRuleObjectDialog.Designer.cs
- odbcmetadatacollectionnames.cs
- AssemblyNameProxy.cs
- Emitter.cs
- SizeLimitedCache.cs
- NotConverter.cs
- GroupBoxAutomationPeer.cs
- TemplateInstanceAttribute.cs
- WarningException.cs
- EventRecordWrittenEventArgs.cs
- ControlBuilderAttribute.cs
- BrowserDefinitionCollection.cs
- ReferencedType.cs
- HttpRequestCacheValidator.cs
- XPathDocumentBuilder.cs
- PersonalizationEntry.cs
- QueryOperationResponseOfT.cs
- IIS7UserPrincipal.cs
- DatatypeImplementation.cs
- FrameworkTextComposition.cs
- CommentEmitter.cs
- ClrProviderManifest.cs
- ExtenderProvidedPropertyAttribute.cs
- FilterException.cs
- XmlMapping.cs
- ScriptReferenceEventArgs.cs
- ElementFactory.cs
- BitmapEncoder.cs
- PatternMatcher.cs
- GraphicsPath.cs
- DataGridViewCellStyleChangedEventArgs.cs
- SqlConnectionManager.cs
- _MultipleConnectAsync.cs
- IProvider.cs
- DispatcherSynchronizationContext.cs
- WhitespaceSignificantCollectionAttribute.cs
- ListViewCommandEventArgs.cs
- WindowsGraphics.cs
- SecurityPermission.cs
- XmlCharCheckingReader.cs
- AutomationPatternInfo.cs
- DataGridViewCheckBoxColumn.cs
- PassportPrincipal.cs
- TrustManagerMoreInformation.cs
- DelegateBodyWriter.cs
- BamlTreeNode.cs
- FileLogRecordStream.cs
- XmlSchemaComplexType.cs
- PbrsForward.cs
- BaseResourcesBuildProvider.cs
- Expressions.cs
- IDQuery.cs
- ShaderEffect.cs
- MatrixConverter.cs
- WinHttpWebProxyFinder.cs
- XmlAnyElementAttribute.cs
- TemplateControl.cs
- HtmlListAdapter.cs
- LocatorGroup.cs
- DataFieldConverter.cs
- ReadWriteObjectLock.cs
- XsdDataContractImporter.cs
- XamlWrappingReader.cs
- PlanCompilerUtil.cs
- DataException.cs
- ConfigurationManager.cs
- WebDescriptionAttribute.cs
- MetadataItemSerializer.cs
- MLangCodePageEncoding.cs
- ExpressionBuilder.cs
- UIElement3D.cs
- ListControl.cs
- XmlMemberMapping.cs
- PriorityQueue.cs
- BreakRecordTable.cs
- DirtyTextRange.cs
- ReadOnlyDictionary.cs
- SqlException.cs
- PrintPreviewGraphics.cs
- AnnotationStore.cs
- DataServiceEntityAttribute.cs
- ExceptionValidationRule.cs
- TransformerConfigurationWizardBase.cs
- DataGridViewButtonColumn.cs
- XamlBrushSerializer.cs
- HttpResponse.cs
- AutomationPattern.cs