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
- UInt32Converter.cs
- OpenFileDialog.cs
- METAHEADER.cs
- FileSystemWatcher.cs
- PluggableProtocol.cs
- DataServiceQueryException.cs
- InstancePersistence.cs
- CriticalHandle.cs
- ComEventsMethod.cs
- SafeNativeMemoryHandle.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- CommonObjectSecurity.cs
- FormatterConverter.cs
- X509UI.cs
- XPathCompileException.cs
- ScrollBar.cs
- ZipIOLocalFileDataDescriptor.cs
- TypeInformation.cs
- RoleService.cs
- CompositeKey.cs
- ToolStripContentPanel.cs
- ToolboxDataAttribute.cs
- SchemaImporterExtensionElement.cs
- XPathDocumentNavigator.cs
- ToolStripPanel.cs
- Wizard.cs
- AutoSizeComboBox.cs
- CaseStatementSlot.cs
- EncodingStreamWrapper.cs
- CustomAttributeFormatException.cs
- ScriptingWebServicesSectionGroup.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ImageListDesigner.cs
- NetworkInterface.cs
- _Connection.cs
- CellNormalizer.cs
- RelationshipConverter.cs
- FileDetails.cs
- ColumnResizeAdorner.cs
- DiscriminatorMap.cs
- InvalidDocumentContentsException.cs
- TypeUtil.cs
- MetadataCollection.cs
- CngProvider.cs
- WebPartsSection.cs
- StaticDataManager.cs
- SystemBrushes.cs
- FixedDocument.cs
- MemoryStream.cs
- TypeDescriptor.cs
- RawStylusInputCustomDataList.cs
- CriticalFileToken.cs
- ProgressBarRenderer.cs
- XmlEncoding.cs
- Size3DConverter.cs
- ModuleBuilderData.cs
- RoleService.cs
- WebPartConnectVerb.cs
- GacUtil.cs
- WebUtil.cs
- Preprocessor.cs
- WindowsPen.cs
- MenuItemBindingCollection.cs
- FlowDocumentScrollViewer.cs
- AutomationIdentifierGuids.cs
- Event.cs
- CheckBox.cs
- HtmlInputText.cs
- StreamInfo.cs
- XmlConvert.cs
- Int32EqualityComparer.cs
- WebEncodingValidatorAttribute.cs
- LinearKeyFrames.cs
- DataGridRowEventArgs.cs
- TCPClient.cs
- messageonlyhwndwrapper.cs
- UICuesEvent.cs
- ContentType.cs
- OpenTypeCommon.cs
- DateTimeConverter.cs
- MultiTrigger.cs
- SmtpClient.cs
- HMACSHA384.cs
- SpecialNameAttribute.cs
- XamlFxTrace.cs
- TimeoutStream.cs
- DataGridColumnHeader.cs
- Stream.cs
- PermissionSetEnumerator.cs
- InplaceBitmapMetadataWriter.cs
- XamlPointCollectionSerializer.cs
- EditCommandColumn.cs
- OdbcEnvironment.cs
- ActivityUtilities.cs
- DataGridColumnStyleMappingNameEditor.cs
- SqlInfoMessageEvent.cs
- LogSwitch.cs
- NavigatorOutput.cs
- RegexStringValidator.cs
- TypeToken.cs