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
- ColorBlend.cs
- EventsTab.cs
- UnknownMessageReceivedEventArgs.cs
- Clipboard.cs
- TypeConverterHelper.cs
- DeploymentSectionCache.cs
- XomlDesignerLoader.cs
- HttpPostedFile.cs
- WebPartMenuStyle.cs
- RequestSecurityTokenResponse.cs
- TextParentUndoUnit.cs
- CleanUpVirtualizedItemEventArgs.cs
- CuspData.cs
- iisPickupDirectory.cs
- FileEnumerator.cs
- XmlTextReader.cs
- FixedLineResult.cs
- Label.cs
- TemplateInstanceAttribute.cs
- TreeNode.cs
- Duration.cs
- NoneExcludedImageIndexConverter.cs
- HierarchicalDataSourceControl.cs
- StandardToolWindows.cs
- PointLightBase.cs
- CatalogPart.cs
- FunctionImportElement.cs
- InvalidComObjectException.cs
- ValueTypePropertyReference.cs
- DeferredReference.cs
- DbBuffer.cs
- PrimarySelectionGlyph.cs
- PenThread.cs
- DataGridViewControlCollection.cs
- IPAddressCollection.cs
- DataTableTypeConverter.cs
- Repeater.cs
- HttpConfigurationSystem.cs
- EntityDesignerUtils.cs
- VariableBinder.cs
- StateWorkerRequest.cs
- DeviceContext2.cs
- Empty.cs
- ListComponentEditor.cs
- DataGridTextBox.cs
- DrawingContextWalker.cs
- AspNetHostingPermission.cs
- MouseButtonEventArgs.cs
- ResolvedKeyFrameEntry.cs
- ByteStreamGeometryContext.cs
- _Events.cs
- DependencyObject.cs
- ConfigurationSectionGroupCollection.cs
- KeyedCollection.cs
- Trace.cs
- ListViewItem.cs
- EntityCodeGenerator.cs
- InvokeMemberBinder.cs
- DataServiceRequestException.cs
- XmlMemberMapping.cs
- EditCommandColumn.cs
- NumberSubstitution.cs
- PersonalizableTypeEntry.cs
- CreateUserWizard.cs
- SizeConverter.cs
- SrgsGrammarCompiler.cs
- ErrorInfoXmlDocument.cs
- WebPartConnectionsCloseVerb.cs
- ObjectSet.cs
- AutoGeneratedFieldProperties.cs
- Privilege.cs
- RegistrySecurity.cs
- MultiView.cs
- PropertyChangingEventArgs.cs
- UnmanagedMemoryStream.cs
- StorageEntityTypeMapping.cs
- FixedPageAutomationPeer.cs
- XmlObjectSerializerReadContextComplex.cs
- Misc.cs
- DateTimeConstantAttribute.cs
- ManagedWndProcTracker.cs
- HtmlControl.cs
- AxImporter.cs
- DiagnosticTraceSchemas.cs
- SafeHandle.cs
- ProfileSection.cs
- Int32Rect.cs
- PixelFormats.cs
- ObjectPropertyMapping.cs
- RectangleConverter.cs
- TextOnlyOutput.cs
- BrowserTree.cs
- StsCommunicationException.cs
- IResourceProvider.cs
- ArgumentValueSerializer.cs
- SchemaLookupTable.cs
- LoginView.cs
- InstanceKeyView.cs
- InstanceHandleConflictException.cs
- FrugalMap.cs