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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FontResourceCache.cs
- ResourceSet.cs
- ChtmlTextWriter.cs
- PageBuildProvider.cs
- DataGridViewCellStyleChangedEventArgs.cs
- GenericWebPart.cs
- LinearGradientBrush.cs
- HttpCapabilitiesSectionHandler.cs
- AppDomainFactory.cs
- MimeTypePropertyAttribute.cs
- PerformanceCountersElement.cs
- PrimitiveRenderer.cs
- StreamWriter.cs
- PersistenceMetadataNamespace.cs
- TreeView.cs
- AvTraceDetails.cs
- UsernameTokenFactoryCredential.cs
- BlurBitmapEffect.cs
- SafeHandle.cs
- SafeWaitHandle.cs
- ToolStripItemClickedEventArgs.cs
- XmlSchemaSimpleTypeRestriction.cs
- MultipleViewProviderWrapper.cs
- TextCollapsingProperties.cs
- SecurityElement.cs
- SqlAliaser.cs
- ConfigXmlText.cs
- CreateUserWizardStep.cs
- DataServiceHost.cs
- HighlightOverlayGlyph.cs
- RowToParametersTransformer.cs
- TimeStampChecker.cs
- X509Chain.cs
- Identifier.cs
- assemblycache.cs
- ClientRuntimeConfig.cs
- EventLogWatcher.cs
- DriveNotFoundException.cs
- InvokeAction.cs
- PropertyPushdownHelper.cs
- ExceptionUtil.cs
- CompositionTarget.cs
- AlternationConverter.cs
- ValidationResult.cs
- TableRowGroup.cs
- AppDomainUnloadedException.cs
- IconBitmapDecoder.cs
- PageAsyncTask.cs
- SelectionWordBreaker.cs
- DependencyObjectType.cs
- BinaryWriter.cs
- TextTreeRootTextBlock.cs
- TextTreeInsertUndoUnit.cs
- BrowserCapabilitiesCompiler.cs
- VisualStyleInformation.cs
- SpecialNameAttribute.cs
- PrinterSettings.cs
- TimeSpanMinutesConverter.cs
- AlphabeticalEnumConverter.cs
- PeerCredentialElement.cs
- WsatTransactionHeader.cs
- CmsInterop.cs
- StartUpEventArgs.cs
- Vector3DKeyFrameCollection.cs
- CharacterMetrics.cs
- DataBindingList.cs
- SqlDataReader.cs
- Predicate.cs
- BooleanConverter.cs
- TableLayoutSettingsTypeConverter.cs
- NullableDecimalAverageAggregationOperator.cs
- BrowsableAttribute.cs
- QueryContext.cs
- DesignerEventService.cs
- ScrollChrome.cs
- FrameworkContextData.cs
- SafeSecurityHandles.cs
- ListItemCollection.cs
- HealthMonitoringSectionHelper.cs
- MSAAWinEventWrap.cs
- StyleXamlParser.cs
- SurrogateSelector.cs
- VersionedStreamOwner.cs
- XappLauncher.cs
- BindingCompleteEventArgs.cs
- UserPreferenceChangingEventArgs.cs
- ADMembershipProvider.cs
- XmlILAnnotation.cs
- ChangePassword.cs
- ItemType.cs
- DataControlFieldCollection.cs
- ListManagerBindingsCollection.cs
- DomainConstraint.cs
- PopupRoot.cs
- CollectionAdapters.cs
- XamlFilter.cs
- SoapIncludeAttribute.cs
- SqlDataAdapter.cs
- regiisutil.cs
- ToolStripDesignerUtils.cs