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
- XPathScanner.cs
- nulltextcontainer.cs
- TimeSpan.cs
- CollectionBase.cs
- XDRSchema.cs
- XmlNamespaceMappingCollection.cs
- PersonalizationEntry.cs
- DocumentScope.cs
- CounterSampleCalculator.cs
- XPathBinder.cs
- ScrollChrome.cs
- HttpWebRequestElement.cs
- DetailsViewDeleteEventArgs.cs
- ReliableMessagingVersionConverter.cs
- FactoryRecord.cs
- MailMessageEventArgs.cs
- FileRecordSequence.cs
- DrawListViewSubItemEventArgs.cs
- RemotingException.cs
- DefaultHttpHandler.cs
- XamlReaderHelper.cs
- ControlFilterExpression.cs
- ExpressionEditorSheet.cs
- GetWorkflowTree.cs
- ElementMarkupObject.cs
- GroupBox.cs
- _KerberosClient.cs
- InteropBitmapSource.cs
- DataGridViewLinkColumn.cs
- ExternalException.cs
- ItemPager.cs
- ChannelListenerBase.cs
- PeerConnector.cs
- CompilerInfo.cs
- BamlRecordHelper.cs
- BatchParser.cs
- recordstatescratchpad.cs
- MessageSecurityOverTcp.cs
- WindowAutomationPeer.cs
- RelationshipType.cs
- BindingSource.cs
- Vector3DKeyFrameCollection.cs
- FrameworkReadOnlyPropertyMetadata.cs
- mactripleDES.cs
- AudioFileOut.cs
- EdmScalarPropertyAttribute.cs
- IndexedEnumerable.cs
- Journal.cs
- XmlSchemaException.cs
- XmlException.cs
- HwndSource.cs
- ResXResourceSet.cs
- NodeLabelEditEvent.cs
- PerformanceCounterLib.cs
- HtmlInputControl.cs
- TableAutomationPeer.cs
- DBSqlParserColumnCollection.cs
- FrugalMap.cs
- CryptoApi.cs
- AppDomainProtocolHandler.cs
- SafeNativeMethods.cs
- FormViewUpdatedEventArgs.cs
- MessageEncoderFactory.cs
- ScaleTransform.cs
- ProxyHelper.cs
- ButtonBaseAutomationPeer.cs
- CodeIndexerExpression.cs
- WebPartRestoreVerb.cs
- ApplicationServicesHostFactory.cs
- GenerateHelper.cs
- Column.cs
- XPathPatternParser.cs
- Decimal.cs
- Size3DConverter.cs
- DocumentXPathNavigator.cs
- WsdlExporter.cs
- RSACryptoServiceProvider.cs
- DropShadowBitmapEffect.cs
- WebPartCatalogCloseVerb.cs
- TreeViewItemAutomationPeer.cs
- Cursor.cs
- InfoCardArgumentException.cs
- SamlSerializer.cs
- SessionStateUtil.cs
- TypefaceMap.cs
- SystemWebSectionGroup.cs
- ActivityXamlServices.cs
- AttributeXamlType.cs
- NamedElement.cs
- FactoryRecord.cs
- XmlMemberMapping.cs
- MessageAction.cs
- CapabilitiesUse.cs
- securitycriticaldataformultiplegetandset.cs
- AttributeInfo.cs
- ConfigurationException.cs
- TargetControlTypeCache.cs
- ThemeInfoAttribute.cs
- PerformanceCounterPermissionEntry.cs
- SmiRecordBuffer.cs