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
- Encoding.cs
- CodeDefaultValueExpression.cs
- PenLineJoinValidation.cs
- XamlHostingSection.cs
- ScriptControlManager.cs
- ObjectQuery.cs
- QueryStringParameter.cs
- SoapFault.cs
- DebugView.cs
- ZoneIdentityPermission.cs
- CapabilitiesPattern.cs
- AppDomainShutdownMonitor.cs
- ToolStripGrip.cs
- DataGridViewColumnStateChangedEventArgs.cs
- brushes.cs
- HitTestResult.cs
- EntityDataSourceSelectingEventArgs.cs
- ADMembershipProvider.cs
- HMACMD5.cs
- SafeRegistryHandle.cs
- LinkedResource.cs
- SharedUtils.cs
- IdentityModelDictionary.cs
- XmlAttributeCache.cs
- CreateParams.cs
- DashStyles.cs
- PromptEventArgs.cs
- DurableInstanceManager.cs
- AsyncResult.cs
- CatalogZoneBase.cs
- CapabilitiesSection.cs
- SafeEventHandle.cs
- ScrollBarAutomationPeer.cs
- ScriptResourceInfo.cs
- RowToFieldTransformer.cs
- MarshalByValueComponent.cs
- WebRequest.cs
- XmlSchemaInfo.cs
- SqlConnectionStringBuilder.cs
- SimpleHandlerFactory.cs
- SafeSecurityHandles.cs
- ClientOperationFormatterProvider.cs
- ConfigurationSectionGroup.cs
- CustomErrorCollection.cs
- CompositeActivityMarkupSerializer.cs
- ComEventsSink.cs
- XmlEncoding.cs
- Package.cs
- ToolStripButton.cs
- QueryStringParameter.cs
- IgnoreDeviceFilterElementCollection.cs
- EnumerableRowCollectionExtensions.cs
- PageAsyncTask.cs
- StringCollection.cs
- AttributeProviderAttribute.cs
- DataGridViewBand.cs
- XmlChildEnumerator.cs
- TableLayoutPanelResizeGlyph.cs
- ThreadAttributes.cs
- HwndSourceKeyboardInputSite.cs
- XmlArrayAttribute.cs
- XmlDataImplementation.cs
- InputMethod.cs
- COM2ExtendedTypeConverter.cs
- AttributeCollection.cs
- PrintSystemException.cs
- InlineCollection.cs
- assemblycache.cs
- ItemCheckedEvent.cs
- DBCommand.cs
- objectquery_tresulttype.cs
- RegexCapture.cs
- RuntimeConfigurationRecord.cs
- AuthenticationException.cs
- Visual3D.cs
- Pair.cs
- DataGridViewHeaderCell.cs
- DataFormats.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- BinHexDecoder.cs
- OptimizedTemplateContent.cs
- DocumentSchemaValidator.cs
- ClientBuildManager.cs
- CodeMemberEvent.cs
- TriggerAction.cs
- InfoCardSymmetricAlgorithm.cs
- SystemMulticastIPAddressInformation.cs
- X509ChainPolicy.cs
- PeerCollaborationPermission.cs
- DecimalKeyFrameCollection.cs
- SecurityTokenRequirement.cs
- Literal.cs
- DateTimeFormatInfoScanner.cs
- DynamicILGenerator.cs
- OperandQuery.cs
- ProxyWebPartManager.cs
- unsafenativemethodsother.cs
- storagemappingitemcollection.viewdictionary.cs
- MenuItemBinding.cs
- ThicknessKeyFrameCollection.cs