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
- HtmlSelect.cs
- SuppressMessageAttribute.cs
- RegexMatch.cs
- UInt32.cs
- MarshalByRefObject.cs
- PersonalizableTypeEntry.cs
- ActivityWithResult.cs
- ResourceBinder.cs
- RepeatInfo.cs
- SafeThemeHandle.cs
- TextBoxLine.cs
- Viewport3DVisual.cs
- AttachedProperty.cs
- Double.cs
- ObjectDataSourceWizardForm.cs
- FollowerQueueCreator.cs
- SchemaInfo.cs
- MessageSecurityException.cs
- ProcessingInstructionAction.cs
- StatusBarItemAutomationPeer.cs
- Button.cs
- KeySplineConverter.cs
- DesignerLinkAdapter.cs
- XmlAttributeOverrides.cs
- TypeSystem.cs
- ErrorFormatterPage.cs
- XhtmlBasicTextBoxAdapter.cs
- _AutoWebProxyScriptWrapper.cs
- WebServicesSection.cs
- SourceLocationProvider.cs
- URLIdentityPermission.cs
- UserPreferenceChangedEventArgs.cs
- ResXResourceWriter.cs
- XmlElementAttributes.cs
- SinglePageViewer.cs
- cookiecollection.cs
- SafeProcessHandle.cs
- ListMarkerSourceInfo.cs
- PanningMessageFilter.cs
- PartialArray.cs
- sqlpipe.cs
- HiddenFieldPageStatePersister.cs
- XmlBinaryReader.cs
- MsmqIntegrationProcessProtocolHandler.cs
- TrailingSpaceComparer.cs
- _emptywebproxy.cs
- ManagedWndProcTracker.cs
- XamlTypeMapperSchemaContext.cs
- DeviceSpecificChoice.cs
- RotateTransform.cs
- BevelBitmapEffect.cs
- LabelEditEvent.cs
- RewritingValidator.cs
- TextLineBreak.cs
- DataPagerFieldItem.cs
- VersionUtil.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- FileDialogCustomPlace.cs
- WhitespaceReader.cs
- ReaderOutput.cs
- AuthenticationService.cs
- LogConverter.cs
- Scripts.cs
- SignerInfo.cs
- DefaultObjectMappingItemCollection.cs
- ManagedFilter.cs
- SemanticBasicElement.cs
- COM2ICategorizePropertiesHandler.cs
- loginstatus.cs
- SmtpMail.cs
- ResourceWriter.cs
- wmiutil.cs
- XmlCDATASection.cs
- IriParsingElement.cs
- DbConvert.cs
- Transform.cs
- TransformerInfo.cs
- HelpKeywordAttribute.cs
- TextFormatter.cs
- ClientFormsIdentity.cs
- PolyBezierSegment.cs
- DocumentXmlWriter.cs
- Group.cs
- RemotingConfigParser.cs
- CustomPopupPlacement.cs
- Comparer.cs
- MiniAssembly.cs
- Material.cs
- SqlBuffer.cs
- RemoteWebConfigurationHostServer.cs
- parserscommon.cs
- PackageRelationship.cs
- ToolboxComponentsCreatedEventArgs.cs
- XmlSchemaAny.cs
- regiisutil.cs
- ResXDataNode.cs
- SkinBuilder.cs
- ConfigurationManagerInternalFactory.cs
- UIElement3DAutomationPeer.cs
- HttpModulesSection.cs