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
- FixedFindEngine.cs
- TagPrefixAttribute.cs
- XmlWriter.cs
- PeerValidationBehavior.cs
- DataGridSortCommandEventArgs.cs
- WsdlContractConversionContext.cs
- ConfigXmlComment.cs
- HttpVersion.cs
- AttachedPropertyBrowsableAttribute.cs
- SR.cs
- AssertSection.cs
- TableLayoutPanelBehavior.cs
- DashStyles.cs
- XPathNodeList.cs
- OdbcDataReader.cs
- ProcessModelInfo.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- HuffModule.cs
- DetailsViewUpdatedEventArgs.cs
- StringUtil.cs
- MergeFilterQuery.cs
- DifferencingCollection.cs
- IdentityHolder.cs
- InputLangChangeEvent.cs
- LogManagementAsyncResult.cs
- AssemblyAssociatedContentFileAttribute.cs
- ClrPerspective.cs
- ProfilePropertyNameValidator.cs
- Transform3D.cs
- ScaleTransform3D.cs
- Int16.cs
- PermissionListSet.cs
- HttpClientChannel.cs
- DragCompletedEventArgs.cs
- TextEditorDragDrop.cs
- _IPv6Address.cs
- KeyConverter.cs
- AlphaSortedEnumConverter.cs
- storepermissionattribute.cs
- DependencyPropertyKind.cs
- AsyncOperation.cs
- PixelFormat.cs
- ProcessHost.cs
- DataShape.cs
- ModifierKeysConverter.cs
- MessageSecurityException.cs
- ActivationServices.cs
- GetPageCompletedEventArgs.cs
- Thread.cs
- HybridObjectCache.cs
- LayeredChannelFactory.cs
- NavigationPropertyEmitter.cs
- Package.cs
- XmlDocumentSerializer.cs
- MouseGestureValueSerializer.cs
- DBPropSet.cs
- ArithmeticException.cs
- PersonalizationStateInfo.cs
- FlowLayoutPanel.cs
- TextRangeAdaptor.cs
- DateTimeFormat.cs
- XmlSerializationGeneratedCode.cs
- ClientApiGenerator.cs
- XsltLoader.cs
- EmptyEnumerable.cs
- XmlBaseReader.cs
- Rotation3D.cs
- TreeNodeBindingDepthConverter.cs
- StructuredTypeInfo.cs
- GiveFeedbackEvent.cs
- ClientTargetSection.cs
- StrokeRenderer.cs
- RawUIStateInputReport.cs
- VScrollBar.cs
- ScheduleChanges.cs
- SymmetricKeyWrap.cs
- CommandField.cs
- WindowsFont.cs
- PropertyGridCommands.cs
- XamlSerializerUtil.cs
- DefaultObjectMappingItemCollection.cs
- FontFamilyIdentifier.cs
- SiteMapDesignerDataSourceView.cs
- XmlElementAttributes.cs
- Context.cs
- OracleBFile.cs
- DataMemberAttribute.cs
- SystemIPGlobalProperties.cs
- DocumentScope.cs
- SettingsPropertyIsReadOnlyException.cs
- SurrogateSelector.cs
- LinqDataSourceContextEventArgs.cs
- TableRow.cs
- TableRow.cs
- SemanticResolver.cs
- EventLogPropertySelector.cs
- XmlDataLoader.cs
- ExtractedStateEntry.cs
- AppDomainFactory.cs
- Column.cs