Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / HttpDigestClientElement.cs / 1 / HttpDigestClientElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System; using System.ServiceModel; using System.Configuration; using System.ServiceModel.Security; using System.ServiceModel.Channels; using System.Xml; using System.Security.Principal; using System.Security.Cryptography.X509Certificates; public sealed partial class HttpDigestClientElement : ConfigurationElement { public HttpDigestClientElement() { } [ConfigurationProperty(ConfigurationStrings.ImpersonationLevel, DefaultValue = WindowsClientCredential.DefaultImpersonationLevel)] [ServiceModelEnumValidator(typeof(TokenImpersonationLevelHelper))] public TokenImpersonationLevel ImpersonationLevel { get { return (TokenImpersonationLevel)base[ConfigurationStrings.ImpersonationLevel]; } set { base[ConfigurationStrings.ImpersonationLevel] = value; } } public void Copy(HttpDigestClientElement from) { if (this.IsReadOnly()) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(SR.GetString(SR.ConfigReadOnly))); } if (null == from) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("from"); } this.ImpersonationLevel = from.ImpersonationLevel; } internal void ApplyConfiguration(HttpDigestClientCredential digest) { if (digest == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("digest"); } digest.AllowedImpersonationLevel = this.ImpersonationLevel; } } } // 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
- ListViewInsertionMark.cs
- BindingExpressionBase.cs
- ClientSideQueueItem.cs
- FrameworkContentElement.cs
- AccessKeyManager.cs
- Utils.cs
- ClientCredentialsSecurityTokenManager.cs
- FormViewModeEventArgs.cs
- Tag.cs
- LineServicesCallbacks.cs
- XmlCharCheckingReader.cs
- SelectionEditingBehavior.cs
- DispatcherTimer.cs
- SqlPersonalizationProvider.cs
- Vector3dCollection.cs
- Console.cs
- AsyncCompletedEventArgs.cs
- PersistenceException.cs
- Highlights.cs
- AccessedThroughPropertyAttribute.cs
- InternalControlCollection.cs
- WeakEventManager.cs
- BinHexEncoder.cs
- BlockUIContainer.cs
- ImageMetadata.cs
- DataGridRow.cs
- XmlName.cs
- DataObject.cs
- MouseCaptureWithinProperty.cs
- BrowserTree.cs
- ProfileSection.cs
- CodeNamespaceImportCollection.cs
- TableDetailsCollection.cs
- InputBinder.cs
- HiddenFieldPageStatePersister.cs
- WpfXamlMember.cs
- Separator.cs
- LiteralText.cs
- NamedPermissionSet.cs
- StreamWriter.cs
- KeyNotFoundException.cs
- StrokeCollection.cs
- LambdaCompiler.ControlFlow.cs
- IdentityValidationException.cs
- StorageAssociationSetMapping.cs
- AnonymousIdentificationModule.cs
- QueryAccessibilityHelpEvent.cs
- XamlReaderConstants.cs
- DateTimeOffsetStorage.cs
- SqlProfileProvider.cs
- EnumType.cs
- QilStrConcatenator.cs
- CodeDomExtensionMethods.cs
- TdsEnums.cs
- SqlClientMetaDataCollectionNames.cs
- CustomGrammar.cs
- DataControlField.cs
- SmiContext.cs
- ECDiffieHellmanCngPublicKey.cs
- WindowsListViewSubItem.cs
- TileBrush.cs
- XmlKeywords.cs
- MessageQueueInstaller.cs
- TextParagraphView.cs
- AssemblyUtil.cs
- bidPrivateBase.cs
- ConfigXmlElement.cs
- SystemIPGlobalProperties.cs
- SmtpSection.cs
- ToolStripOverflow.cs
- RemotingConfigParser.cs
- FileSystemEventArgs.cs
- SqlDataSourceFilteringEventArgs.cs
- RemoteWebConfigurationHostStream.cs
- DoubleConverter.cs
- StorageSetMapping.cs
- OdbcException.cs
- CompareInfo.cs
- PerformanceCounterPermission.cs
- SeparatorAutomationPeer.cs
- VideoDrawing.cs
- DataDesignUtil.cs
- SystemUdpStatistics.cs
- ITextView.cs
- DataObjectEventArgs.cs
- BinHexEncoder.cs
- nulltextcontainer.cs
- Int32CollectionValueSerializer.cs
- AccessedThroughPropertyAttribute.cs
- ArrayItemReference.cs
- ClickablePoint.cs
- ClientScriptItemCollection.cs
- MulticastDelegate.cs
- DbConnectionClosed.cs
- ChildTable.cs
- TextBoxRenderer.cs
- Int32AnimationBase.cs
- ConstructorArgumentAttribute.cs
- Translator.cs
- Label.cs