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
- XmlLanguage.cs
- RegexCode.cs
- ListViewDeletedEventArgs.cs
- FloaterBaseParagraph.cs
- Renderer.cs
- MeshGeometry3D.cs
- GradientStop.cs
- TextAutomationPeer.cs
- SqlGenericUtil.cs
- ArrayList.cs
- UnsafeNativeMethods.cs
- X509Certificate.cs
- HwndHost.cs
- OdbcEnvironmentHandle.cs
- WindowsRegion.cs
- WrappingXamlSchemaContext.cs
- TargetParameterCountException.cs
- GridErrorDlg.cs
- StorageAssociationSetMapping.cs
- DoubleLink.cs
- ThemeDictionaryExtension.cs
- ByeOperation11AsyncResult.cs
- _FtpControlStream.cs
- ConstructorBuilder.cs
- SqlTypesSchemaImporter.cs
- StringUtil.cs
- XmlSerializerVersionAttribute.cs
- EncoderBestFitFallback.cs
- ErrorRuntimeConfig.cs
- PassportAuthentication.cs
- DataSourceBooleanViewSchemaConverter.cs
- RSAOAEPKeyExchangeFormatter.cs
- QilList.cs
- MaskInputRejectedEventArgs.cs
- BamlRecordHelper.cs
- DbDataAdapter.cs
- CacheAxisQuery.cs
- EventQueueState.cs
- DocumentGridContextMenu.cs
- Size3D.cs
- RuntimeConfigLKG.cs
- PathSegment.cs
- Util.cs
- ExecutedRoutedEventArgs.cs
- MetadataFile.cs
- CloseCollectionAsyncResult.cs
- RegexGroup.cs
- FixedSchema.cs
- SessionViewState.cs
- HyperLinkField.cs
- ReliabilityContractAttribute.cs
- EventManager.cs
- Transform3D.cs
- TextDecorationUnitValidation.cs
- WindowHideOrCloseTracker.cs
- OutKeywords.cs
- WebScriptEnablingBehavior.cs
- SQLBytesStorage.cs
- CallSiteBinder.cs
- dataprotectionpermissionattribute.cs
- Literal.cs
- Sequence.cs
- BadImageFormatException.cs
- ConfigurationLockCollection.cs
- QuaternionIndependentAnimationStorage.cs
- ColorAnimation.cs
- BinaryQueryOperator.cs
- TypographyProperties.cs
- DelegateSerializationHolder.cs
- IssuerInformation.cs
- OutputCacheProfile.cs
- NonParentingControl.cs
- BooleanFunctions.cs
- SimpleApplicationHost.cs
- WebUtil.cs
- CreateUserWizard.cs
- SHA512Managed.cs
- AppDomainEvidenceFactory.cs
- SponsorHelper.cs
- METAHEADER.cs
- WebPartHelpVerb.cs
- ResourceContainer.cs
- DbProviderFactory.cs
- LookupNode.cs
- SqlGenericUtil.cs
- HttpAsyncResult.cs
- HybridDictionary.cs
- TypeFieldSchema.cs
- AuthorizationRule.cs
- PlatformNotSupportedException.cs
- Update.cs
- BulletChrome.cs
- _TransmitFileOverlappedAsyncResult.cs
- DomainUpDown.cs
- BinHexEncoder.cs
- MissingMethodException.cs
- ToolStripItemImageRenderEventArgs.cs
- DriveInfo.cs
- WebPartDisplayMode.cs
- DataGridCaption.cs