Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Security / Cryptography / CngUIPolicy.cs / 1305376 / CngUIPolicy.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; using System.Diagnostics.Contracts; namespace System.Security.Cryptography { ////// Configuration parameters for the UI displayed by CNG when accessing a protected key /// [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] public sealed class CngUIPolicy { private string m_creationTitle; private string m_description; private string m_friendlyName; private CngUIProtectionLevels m_protectionLevel; private string m_useContext; public CngUIPolicy(CngUIProtectionLevels protectionLevel) : this(protectionLevel, null) { } public CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName) : this(protectionLevel, friendlyName, null) { } public CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName, string description) : this(protectionLevel, friendlyName, description, null) { } public CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName, string description, string useContext) : this(protectionLevel, friendlyName, description, useContext, null) { } public CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName, string description, string useContext, string creationTitle) { m_creationTitle = creationTitle; m_description = description; m_friendlyName = friendlyName; m_protectionLevel = protectionLevel; m_useContext = useContext; } ////// Title of the dialog box displaed when a newly created key is finalized, null for the default title /// public string CreationTitle { get { return m_creationTitle; } } ////// Description text displayed in the dialog box when the key is accessed, null for the default text /// public string Description { get { return m_description; } } ////// Friendly name to describe the key with in the dialog box that appears when the key is accessed, /// null for default name /// public string FriendlyName { get { return m_friendlyName; } } ////// Level of UI protection to apply to the key /// public CngUIProtectionLevels ProtectionLevel { get { return m_protectionLevel; } } ////// Description of how the key will be used /// public string UseContext { get { return m_useContext; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; using System.Diagnostics.Contracts; namespace System.Security.Cryptography { ////// Configuration parameters for the UI displayed by CNG when accessing a protected key /// [System.Security.Permissions.HostProtection(MayLeakOnAbort = true)] public sealed class CngUIPolicy { private string m_creationTitle; private string m_description; private string m_friendlyName; private CngUIProtectionLevels m_protectionLevel; private string m_useContext; public CngUIPolicy(CngUIProtectionLevels protectionLevel) : this(protectionLevel, null) { } public CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName) : this(protectionLevel, friendlyName, null) { } public CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName, string description) : this(protectionLevel, friendlyName, description, null) { } public CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName, string description, string useContext) : this(protectionLevel, friendlyName, description, useContext, null) { } public CngUIPolicy(CngUIProtectionLevels protectionLevel, string friendlyName, string description, string useContext, string creationTitle) { m_creationTitle = creationTitle; m_description = description; m_friendlyName = friendlyName; m_protectionLevel = protectionLevel; m_useContext = useContext; } ////// Title of the dialog box displaed when a newly created key is finalized, null for the default title /// public string CreationTitle { get { return m_creationTitle; } } ////// Description text displayed in the dialog box when the key is accessed, null for the default text /// public string Description { get { return m_description; } } ////// Friendly name to describe the key with in the dialog box that appears when the key is accessed, /// null for default name /// public string FriendlyName { get { return m_friendlyName; } } ////// Level of UI protection to apply to the key /// public CngUIProtectionLevels ProtectionLevel { get { return m_protectionLevel; } } ////// Description of how the key will be used /// public string UseContext { get { return m_useContext; } } } } // 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
- Renderer.cs
- BrushConverter.cs
- GridLengthConverter.cs
- ColumnCollection.cs
- SerialPort.cs
- ServiceOperationInfoTypeConverter.cs
- WebPartTransformer.cs
- SkewTransform.cs
- WebPartConnectionsEventArgs.cs
- ManagedWndProcTracker.cs
- SBCSCodePageEncoding.cs
- UIElementParagraph.cs
- XAMLParseException.cs
- ISAPIWorkerRequest.cs
- Ipv6Element.cs
- DbgUtil.cs
- XmlNullResolver.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- SqlExpressionNullability.cs
- DispatcherOperation.cs
- ResourcePermissionBaseEntry.cs
- BCLDebug.cs
- SqlDataRecord.cs
- OdbcConnectionHandle.cs
- _Events.cs
- CreateUserWizardDesigner.cs
- BinaryFormatterWriter.cs
- DataServiceRequestArgs.cs
- ServiceHostingEnvironmentSection.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- AspCompat.cs
- RelatedView.cs
- UriScheme.cs
- RNGCryptoServiceProvider.cs
- Expressions.cs
- ParameterToken.cs
- RectAnimationUsingKeyFrames.cs
- ViewBase.cs
- HttpCachePolicy.cs
- Transform3D.cs
- ObjectQuery.cs
- AuthenticationService.cs
- CopyNamespacesAction.cs
- _BasicClient.cs
- OutputCacheProfile.cs
- MsmqBindingFilter.cs
- Operator.cs
- Comparer.cs
- UniformGrid.cs
- FloaterParagraph.cs
- IdentifierService.cs
- FrameDimension.cs
- Matrix3D.cs
- InputLanguageManager.cs
- MasterPage.cs
- RouteCollection.cs
- BuildProviderAppliesToAttribute.cs
- HttpModule.cs
- MsmqInputMessagePool.cs
- TextHidden.cs
- SystemIPInterfaceProperties.cs
- WindowsTooltip.cs
- SqlServer2KCompatibilityCheck.cs
- SessionStateModule.cs
- DecoderReplacementFallback.cs
- Drawing.cs
- Cursor.cs
- TypeDescriptionProviderAttribute.cs
- MissingManifestResourceException.cs
- CommandLineParser.cs
- AddInContractAttribute.cs
- SatelliteContractVersionAttribute.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ToolboxItemImageConverter.cs
- NamedPipeChannelListener.cs
- BaseInfoTable.cs
- SqlBulkCopy.cs
- DataSourceListEditor.cs
- MouseActionConverter.cs
- EventLogPermissionEntryCollection.cs
- SelectionPattern.cs
- PasswordBoxAutomationPeer.cs
- HitTestParameters3D.cs
- InputLanguageEventArgs.cs
- CodeConstructor.cs
- TextRunCache.cs
- IntellisenseTextBox.cs
- DiscoveryViaBehavior.cs
- COM2PictureConverter.cs
- safePerfProviderHandle.cs
- TaskSchedulerException.cs
- RTLAwareMessageBox.cs
- ScaleTransform.cs
- XPathParser.cs
- PeerContact.cs
- ToolboxItemFilterAttribute.cs
- HtmlImage.cs
- SocketInformation.cs
- EncoderExceptionFallback.cs
- CallbackValidatorAttribute.cs