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
- SmtpLoginAuthenticationModule.cs
- InkCanvasSelectionAdorner.cs
- UIElement.cs
- ToolConsole.cs
- WorkflowApplicationTerminatedException.cs
- _SslStream.cs
- OdbcConnectionPoolProviderInfo.cs
- DynamicRouteExpression.cs
- ImmutableAssemblyCacheEntry.cs
- Calendar.cs
- StreamGeometry.cs
- SqlClientPermission.cs
- ListBase.cs
- NavigationProperty.cs
- AdPostCacheSubstitution.cs
- __ConsoleStream.cs
- ComponentCodeDomSerializer.cs
- BinarySecretSecurityToken.cs
- WebPartsPersonalization.cs
- FontCacheLogic.cs
- PropertyEmitterBase.cs
- DatePickerAutomationPeer.cs
- MultiByteCodec.cs
- SR.cs
- RegisteredExpandoAttribute.cs
- Pair.cs
- MethodExpr.cs
- ContainerControl.cs
- XmlException.cs
- AuthenticatedStream.cs
- FormsAuthenticationCredentials.cs
- MarkupExtensionParser.cs
- SqlParameter.cs
- ControlParameter.cs
- XhtmlBasicFormAdapter.cs
- MenuItemBinding.cs
- TreeView.cs
- ApplicationSettingsBase.cs
- AccessibilityHelperForXpWin2k3.cs
- CodeBlockBuilder.cs
- Query.cs
- PaperSize.cs
- AsyncOperation.cs
- TableLayoutStyleCollection.cs
- EndpointAddressElementBase.cs
- Error.cs
- CheckBox.cs
- PrincipalPermission.cs
- MultiAsyncResult.cs
- ActiveXHost.cs
- AspNetSynchronizationContext.cs
- AsyncResult.cs
- CheckBoxDesigner.cs
- SiteMapDataSource.cs
- PreviewPrintController.cs
- X509SecurityToken.cs
- JumpTask.cs
- DataViewSettingCollection.cs
- SQLMoneyStorage.cs
- EventSetter.cs
- MutexSecurity.cs
- IfAction.cs
- DataServiceRequestOfT.cs
- KeyMatchBuilder.cs
- AnnotationHighlightLayer.cs
- ResourcePool.cs
- RegularExpressionValidator.cs
- WindowsListViewGroupHelper.cs
- ModelItemCollectionImpl.cs
- OraclePermissionAttribute.cs
- ExpressionEditorSheet.cs
- PageParser.cs
- PrimitiveOperationFormatter.cs
- _SslSessionsCache.cs
- GenerateHelper.cs
- COAUTHIDENTITY.cs
- FileSystemWatcher.cs
- SoapSchemaMember.cs
- LayoutDump.cs
- TransformedBitmap.cs
- TraceProvider.cs
- NegotiationTokenAuthenticatorStateCache.cs
- ItemType.cs
- DataGridViewRow.cs
- Types.cs
- OpCopier.cs
- XmlQualifiedNameTest.cs
- FakeModelPropertyImpl.cs
- ObjectTokenCategory.cs
- _LocalDataStoreMgr.cs
- NetworkInformationException.cs
- ExpressionNode.cs
- FixUpCollection.cs
- CqlLexer.cs
- SingleAnimation.cs
- SecurityResources.cs
- DesignBindingPicker.cs
- ContainerSelectorActiveEvent.cs
- ClientCultureInfo.cs
- Context.cs