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
- SqlDataSourceRefreshSchemaForm.cs
- XPathSelectionIterator.cs
- IndexedGlyphRun.cs
- Sql8ConformanceChecker.cs
- WebPartZoneBaseDesigner.cs
- CommaDelimitedStringAttributeCollectionConverter.cs
- StructuredType.cs
- ListItemConverter.cs
- DesignerView.xaml.cs
- BindingUtils.cs
- DoubleLinkListEnumerator.cs
- DataObject.cs
- LinqDataSourceDeleteEventArgs.cs
- BCryptNative.cs
- EntryPointNotFoundException.cs
- IdentitySection.cs
- ListParagraph.cs
- RelationshipEndMember.cs
- WS2007HttpBindingElement.cs
- BindableTemplateBuilder.cs
- LocalServiceSecuritySettings.cs
- SharedConnectionInfo.cs
- LazyTextWriterCreator.cs
- DataGridRelationshipRow.cs
- ClientBuildManagerCallback.cs
- ProfilePropertyMetadata.cs
- WindowsImpersonationContext.cs
- EventLogPermission.cs
- Registry.cs
- TiffBitmapDecoder.cs
- Semaphore.cs
- loginstatus.cs
- MediaTimeline.cs
- MainMenu.cs
- KeyPullup.cs
- OleDbTransaction.cs
- PropertyDescriptorComparer.cs
- ApplicationServicesHostFactory.cs
- ColumnBinding.cs
- ProcessModelInfo.cs
- DropTarget.cs
- HtmlElementCollection.cs
- Oid.cs
- IntSecurity.cs
- ObjectDataSourceView.cs
- DetailsViewUpdatedEventArgs.cs
- Mouse.cs
- SizeLimitedCache.cs
- SafePEFileHandle.cs
- ImageButton.cs
- AsyncCodeActivity.cs
- InkCanvasInnerCanvas.cs
- RoutedUICommand.cs
- Crc32.cs
- ExpressionPrinter.cs
- EditingCoordinator.cs
- WebPartZoneCollection.cs
- Calendar.cs
- Size3DConverter.cs
- HttpResponseWrapper.cs
- TypeElement.cs
- ExecutionPropertyManager.cs
- Properties.cs
- XmlHelper.cs
- UInt16.cs
- ZipIOExtraFieldZip64Element.cs
- DrawingBrush.cs
- ComPlusInstanceContextInitializer.cs
- CacheMemory.cs
- CultureInfoConverter.cs
- VirtualPath.cs
- ListView.cs
- SafeNativeMethods.cs
- ILGenerator.cs
- TextEditorTables.cs
- AppendHelper.cs
- __Filters.cs
- EventMap.cs
- ReadOnlyNameValueCollection.cs
- SessionStateUtil.cs
- Vector3DKeyFrameCollection.cs
- PreProcessInputEventArgs.cs
- LassoHelper.cs
- IdnMapping.cs
- IisTraceListener.cs
- SemaphoreFullException.cs
- OpenTypeCommon.cs
- SqlGatherConsumedAliases.cs
- UserPreferenceChangedEventArgs.cs
- DynamicValueConverter.cs
- ResourceDictionaryCollection.cs
- WindowsGraphics.cs
- ServiceModelActivity.cs
- SmiMetaData.cs
- XhtmlBasicSelectionListAdapter.cs
- UnmanagedHandle.cs
- ItemList.cs
- IPipelineRuntime.cs
- ImageList.cs
- Evidence.cs