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
- ColorConverter.cs
- recordstatefactory.cs
- XPathItem.cs
- WorkflowRuntime.cs
- ProjectionCamera.cs
- FileCodeGroup.cs
- Graphics.cs
- MissingMethodException.cs
- DataGridViewDataErrorEventArgs.cs
- Utility.cs
- MatrixAnimationUsingKeyFrames.cs
- TransactedReceiveData.cs
- ConfigurationValue.cs
- OperationValidationEventArgs.cs
- CachedFontFace.cs
- CmsUtils.cs
- RadioButtonBaseAdapter.cs
- ProfileService.cs
- EncoderParameter.cs
- Model3D.cs
- RawKeyboardInputReport.cs
- DesignerTransaction.cs
- ReferentialConstraintRoleElement.cs
- MulticastNotSupportedException.cs
- Localizer.cs
- ImageSource.cs
- Stream.cs
- AnonymousIdentificationModule.cs
- EditingCommands.cs
- TreeWalker.cs
- SchemaHelper.cs
- HtmlTitle.cs
- ContentFilePart.cs
- BindingListCollectionView.cs
- WinFormsSecurity.cs
- LicFileLicenseProvider.cs
- ObjectQueryExecutionPlan.cs
- JsonDeserializer.cs
- ProcessingInstructionAction.cs
- SafeFileMappingHandle.cs
- ProfilePropertySettingsCollection.cs
- CompiledQueryCacheEntry.cs
- ProxyHwnd.cs
- SslSecurityTokenParameters.cs
- JsonServiceDocumentSerializer.cs
- PlanCompilerUtil.cs
- CompensatableSequenceActivity.cs
- StreamGeometry.cs
- HttpConfigurationSystem.cs
- ScriptingWebServicesSectionGroup.cs
- Array.cs
- InputChannel.cs
- SimpleType.cs
- PrintingPermissionAttribute.cs
- AutomationEvent.cs
- DataTableTypeConverter.cs
- DiscoveryUtility.cs
- PropertyRecord.cs
- SqlTopReducer.cs
- RegionData.cs
- DataRowComparer.cs
- DataTransferEventArgs.cs
- DayRenderEvent.cs
- CodeMemberProperty.cs
- Geometry.cs
- TransactedBatchingElement.cs
- SeparatorAutomationPeer.cs
- CreateUserWizardAutoFormat.cs
- XmlElementList.cs
- SHA256.cs
- SystemIPAddressInformation.cs
- WebReferencesBuildProvider.cs
- FontFamilyValueSerializer.cs
- SelectiveScrollingGrid.cs
- CompilerGlobalScopeAttribute.cs
- AlphaSortedEnumConverter.cs
- DesignerVerb.cs
- RemotingAttributes.cs
- ValueUtilsSmi.cs
- DtdParser.cs
- InputLangChangeEvent.cs
- ConfigurationManagerHelperFactory.cs
- DataSvcMapFile.cs
- ListenerAdaptersInstallComponent.cs
- parserscommon.cs
- CodeExporter.cs
- TextTreeTextBlock.cs
- TraceListeners.cs
- EnumUnknown.cs
- ContainerUtilities.cs
- WindowsEditBoxRange.cs
- GroupBox.cs
- RightsManagementEncryptedStream.cs
- MruCache.cs
- dsa.cs
- ListViewHitTestInfo.cs
- SecurityUniqueId.cs
- CurrentChangingEventManager.cs
- NavigatingCancelEventArgs.cs
- SmiEventSink_Default.cs