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
- RadioButtonFlatAdapter.cs
- ExpressionEditorAttribute.cs
- CollectionContainer.cs
- HttpHandlerAction.cs
- PlaceHolder.cs
- WebBrowserSiteBase.cs
- MethodImplAttribute.cs
- DataGrid.cs
- _IPv6Address.cs
- SeekableReadStream.cs
- SetterTriggerConditionValueConverter.cs
- BackStopAuthenticationModule.cs
- WindowsListBox.cs
- TextDocumentView.cs
- WebHttpBindingCollectionElement.cs
- AppDomainUnloadedException.cs
- SystemFonts.cs
- InstanceNotFoundException.cs
- Facet.cs
- Span.cs
- NavigationWindow.cs
- CssStyleCollection.cs
- ExpressionEditorAttribute.cs
- mansign.cs
- DataReceivedEventArgs.cs
- SignedXml.cs
- FieldBuilder.cs
- ServiceParser.cs
- InstanceKeyView.cs
- EventHandlersDesigner.cs
- QueryOperationResponseOfT.cs
- CodeTypeMember.cs
- CredentialCache.cs
- Main.cs
- Helper.cs
- HttpListenerRequest.cs
- CacheSection.cs
- IgnoreSectionHandler.cs
- FormView.cs
- ListBindableAttribute.cs
- SrgsElementFactory.cs
- DesignTimeTemplateParser.cs
- FatalException.cs
- SQLConvert.cs
- ElementMarkupObject.cs
- Rijndael.cs
- TextEditor.cs
- ByteStreamMessage.cs
- XmlNodeList.cs
- MulticastOption.cs
- PathData.cs
- GetCardDetailsRequest.cs
- SrgsDocument.cs
- NamespaceInfo.cs
- ClientRuntimeConfig.cs
- FormsAuthenticationCredentials.cs
- dataprotectionpermissionattribute.cs
- querybuilder.cs
- ConfigXmlText.cs
- TemplateBindingExtension.cs
- TerminatorSinks.cs
- BoundPropertyEntry.cs
- COM2ComponentEditor.cs
- ConditionCollection.cs
- HandleValueEditor.cs
- COM2IDispatchConverter.cs
- InstanceDescriptor.cs
- XmlJsonWriter.cs
- HttpDebugHandler.cs
- UInt16Converter.cs
- UpnEndpointIdentity.cs
- XmlMapping.cs
- OdbcReferenceCollection.cs
- RelatedImageListAttribute.cs
- ComponentSerializationService.cs
- MissingFieldException.cs
- RuleSetBrowserDialog.cs
- Size.cs
- DoubleAverageAggregationOperator.cs
- ScrollBarAutomationPeer.cs
- AsyncCompletedEventArgs.cs
- InfoCardHelper.cs
- ToolTipService.cs
- WaitForChangedResult.cs
- SqlWriter.cs
- util.cs
- TextElementCollection.cs
- SafeHandles.cs
- ThemeDictionaryExtension.cs
- UseLicense.cs
- PixelShader.cs
- LambdaCompiler.Binary.cs
- ByteArrayHelperWithString.cs
- Variant.cs
- DefaultAssemblyResolver.cs
- VerbConverter.cs
- DispatchOperationRuntime.cs
- SerialReceived.cs
- IntellisenseTextBox.designer.cs
- GPRECTF.cs