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
- PartitionResolver.cs
- Timer.cs
- HtmlInputHidden.cs
- LinkArea.cs
- CodeTypeReferenceExpression.cs
- UidManager.cs
- XmlDownloadManager.cs
- FixedSOMTable.cs
- TdsParser.cs
- ChangePasswordAutoFormat.cs
- ControlsConfig.cs
- DayRenderEvent.cs
- BitmapDecoder.cs
- StringFunctions.cs
- TextBoxBase.cs
- HandleExceptionArgs.cs
- XmlEventCache.cs
- SQLBoolean.cs
- HitTestFilterBehavior.cs
- DocumentPageHost.cs
- ObjectListCommandCollection.cs
- MetaDataInfo.cs
- DecodeHelper.cs
- SqlAliasesReferenced.cs
- SafeNativeMethods.cs
- HtmlElementCollection.cs
- ListViewTableCell.cs
- UnmanagedMarshal.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SoapEnvelopeProcessingElement.cs
- RoleGroup.cs
- EntityDataSourceColumn.cs
- SqlParameter.cs
- ProviderMetadataCachedInformation.cs
- ToolStripTextBox.cs
- GradientStopCollection.cs
- UnsafeMethods.cs
- X509CertificateClaimSet.cs
- DataObjectMethodAttribute.cs
- XsltLoader.cs
- QilList.cs
- WebPartConnectionsCancelVerb.cs
- UriExt.cs
- GridViewRowEventArgs.cs
- RedirectionProxy.cs
- CustomTypeDescriptor.cs
- SafeReversePInvokeHandle.cs
- XmlILAnnotation.cs
- SecurityTokenSerializer.cs
- EventSourceCreationData.cs
- UshortList2.cs
- CallbackValidatorAttribute.cs
- PopupRoot.cs
- XPathAncestorIterator.cs
- BaseParaClient.cs
- ConfigsHelper.cs
- DocumentViewer.cs
- EmptyEnumerator.cs
- CodeCompiler.cs
- XmlCharacterData.cs
- ManagementObjectCollection.cs
- LiteralText.cs
- ProgressiveCrcCalculatingStream.cs
- InplaceBitmapMetadataWriter.cs
- EngineSite.cs
- Vector.cs
- AttributeTableBuilder.cs
- EntityWithChangeTrackerStrategy.cs
- TextSearch.cs
- CodeConstructor.cs
- VersionPair.cs
- LightweightCodeGenerator.cs
- XmlILConstructAnalyzer.cs
- Table.cs
- ArrayTypeMismatchException.cs
- Knowncolors.cs
- InvokeProviderWrapper.cs
- ListViewInsertionMark.cs
- TemplateKeyConverter.cs
- PrivateFontCollection.cs
- TraceHandler.cs
- ProfileService.cs
- ExpandCollapseProviderWrapper.cs
- Int32RectConverter.cs
- CodeEntryPointMethod.cs
- ContainsSearchOperator.cs
- HtmlInputReset.cs
- XmlSchemaValidator.cs
- ProtectedConfiguration.cs
- PropertyValueUIItem.cs
- ResourceIDHelper.cs
- TypeBuilderInstantiation.cs
- AuthenticateEventArgs.cs
- PrintDialog.cs
- TransformFinalBlockRequest.cs
- IdentityHolder.cs
- ListGeneralPage.cs
- ColumnWidthChangingEvent.cs
- HyperlinkAutomationPeer.cs
- KnownTypeAttribute.cs