Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / WindowsClientElement.cs / 1 / WindowsClientElement.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 WindowsClientElement : ConfigurationElement { public WindowsClientElement() { } [ConfigurationProperty(ConfigurationStrings.AllowNtlm, DefaultValue = SspiSecurityTokenProvider.DefaultAllowNtlm)] public bool AllowNtlm { get { return (bool)base[ConfigurationStrings.AllowNtlm]; } set { base[ConfigurationStrings.AllowNtlm] = value; } } [ConfigurationProperty(ConfigurationStrings.AllowedImpersonationLevel, DefaultValue = WindowsClientCredential.DefaultImpersonationLevel)] [ServiceModelEnumValidator(typeof(TokenImpersonationLevelHelper))] public TokenImpersonationLevel AllowedImpersonationLevel { get { return (TokenImpersonationLevel)base[ConfigurationStrings.AllowedImpersonationLevel]; } set { base[ConfigurationStrings.AllowedImpersonationLevel] = value; } } public void Copy(WindowsClientElement from) { if (this.IsReadOnly()) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(SR.GetString(SR.ConfigReadOnly))); } if (null == from) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("from"); } this.AllowNtlm = from.AllowNtlm; this.AllowedImpersonationLevel = from.AllowedImpersonationLevel; } internal void ApplyConfiguration(WindowsClientCredential windows) { if (windows == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("windows"); } windows.AllowNtlm = this.AllowNtlm; windows.AllowedImpersonationLevel = this.AllowedImpersonationLevel; } } } // 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
- OrderPreservingPipeliningMergeHelper.cs
- ActiveXHost.cs
- OracleFactory.cs
- SqlXml.cs
- ProfileManager.cs
- SR.cs
- XmlSerializableServices.cs
- QueryGeneratorBase.cs
- ManipulationDelta.cs
- XmlSerializerObjectSerializer.cs
- DataGridViewButtonCell.cs
- TextLine.cs
- ButtonChrome.cs
- JsonStringDataContract.cs
- ClusterUtils.cs
- WorkflowPersistenceContext.cs
- GifBitmapDecoder.cs
- ApplicationInfo.cs
- ContainerParaClient.cs
- CommandLibraryHelper.cs
- AspNetCompatibilityRequirementsAttribute.cs
- _SslSessionsCache.cs
- ColorConverter.cs
- RuntimeConfig.cs
- versioninfo.cs
- UriScheme.cs
- RawKeyboardInputReport.cs
- CallContext.cs
- HtmlElementCollection.cs
- AnnotationObservableCollection.cs
- DateTimeFormat.cs
- ColorBuilder.cs
- Socket.cs
- UnauthorizedWebPart.cs
- MessageVersion.cs
- NativeMethods.cs
- StylusDevice.cs
- RijndaelManagedTransform.cs
- SpotLight.cs
- Base64Encoder.cs
- FixedSOMTableCell.cs
- Pool.cs
- PropertyNames.cs
- PartBasedPackageProperties.cs
- NativeMethods.cs
- MsmqBindingFilter.cs
- DbProviderFactories.cs
- TextEffectResolver.cs
- CreateWorkflowOwnerCommand.cs
- SHA256Cng.cs
- UdpDiscoveryEndpointProvider.cs
- Pkcs7Signer.cs
- SoapAttributeAttribute.cs
- OdbcDataReader.cs
- ProxyHwnd.cs
- MouseDevice.cs
- TimeSpanOrInfiniteConverter.cs
- RestHandler.cs
- RegionIterator.cs
- Blend.cs
- CodeAttributeArgumentCollection.cs
- XmlSortKey.cs
- UnionExpr.cs
- Expr.cs
- QueryStatement.cs
- ComProxy.cs
- DesignerProperties.cs
- MediaEntryAttribute.cs
- TransactionWaitAsyncResult.cs
- WindowsListViewItemStartMenu.cs
- ThicknessConverter.cs
- ProxyWebPartManagerDesigner.cs
- Validator.cs
- SqlProfileProvider.cs
- CancelEventArgs.cs
- TextOutput.cs
- WebPartHeaderCloseVerb.cs
- XPathPatternParser.cs
- FontTypeConverter.cs
- HandlerMappingMemo.cs
- XmlSigningNodeWriter.cs
- XmlSchemaAnyAttribute.cs
- TraceData.cs
- SystemNetHelpers.cs
- BufferModesCollection.cs
- BoundPropertyEntry.cs
- SizeConverter.cs
- ConsumerConnectionPointCollection.cs
- DrawingAttributeSerializer.cs
- MatrixTransform.cs
- ProfileBuildProvider.cs
- OperatorExpressions.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- PageRequestManager.cs
- Label.cs
- XmlSchemaCollection.cs
- AttributeTable.cs
- ObjectKeyFrameCollection.cs
- DataGridViewDataErrorEventArgs.cs
- ProcessProtocolHandler.cs