Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / UserNamePasswordClientCredential.cs / 1 / UserNamePasswordClientCredential.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security { using System.Collections.Generic; using System.ServiceModel; using System.Runtime.Serialization; using System.Net; using System.Security.Principal; using System.ServiceModel.Security.Tokens; using System.Security.Cryptography.X509Certificates; using System.Web.Security; public sealed class UserNamePasswordClientCredential { string userName; string password; bool isReadOnly; internal UserNamePasswordClientCredential() { // empty } internal UserNamePasswordClientCredential(UserNamePasswordClientCredential other) { this.userName = other.userName; this.password = other.password; this.isReadOnly = other.isReadOnly; } public string UserName { get { return this.userName; } set { ThrowIfImmutable(); this.userName = value; } } public string Password { get { return this.password; } set { ThrowIfImmutable(); this.password = value; } } internal void MakeReadOnly() { this.isReadOnly = true; } void ThrowIfImmutable() { if (this.isReadOnly) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ObjectIsReadOnly))); } } } } // 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
- ServerValidateEventArgs.cs
- JournalEntryStack.cs
- Propagator.cs
- PlanCompilerUtil.cs
- DictionaryChange.cs
- Point3DCollectionValueSerializer.cs
- InstallerTypeAttribute.cs
- DriveInfo.cs
- mactripleDES.cs
- WithStatement.cs
- CacheMemory.cs
- GenericWebPart.cs
- DesignerCategoryAttribute.cs
- DrawingAttributeSerializer.cs
- EditBehavior.cs
- SettingsSection.cs
- RemoteEndpointMessageProperty.cs
- NamespaceQuery.cs
- TextServicesContext.cs
- Mappings.cs
- DrawingContextDrawingContextWalker.cs
- SystemKeyConverter.cs
- Brush.cs
- DbProviderFactory.cs
- StaticContext.cs
- TypeForwardedToAttribute.cs
- MatrixAnimationBase.cs
- TriggerAction.cs
- ReaderContextStackData.cs
- FixedNode.cs
- DNS.cs
- PersistenceTypeAttribute.cs
- ListBase.cs
- Color.cs
- GeneralTransform3DGroup.cs
- FontWeights.cs
- RegexWriter.cs
- NamespaceEmitter.cs
- DbParameterHelper.cs
- XmlSecureResolver.cs
- DbConnectionPoolGroup.cs
- LogReserveAndAppendState.cs
- DropSourceBehavior.cs
- TransactionBehavior.cs
- MediaPlayerState.cs
- XmlDocumentFragment.cs
- DataContractSet.cs
- AddInBase.cs
- PenContext.cs
- SafeFileMappingHandle.cs
- DataView.cs
- ActivityBuilderHelper.cs
- SecurityContextTokenValidationException.cs
- DocumentPageTextView.cs
- DnsPermission.cs
- SqlUtil.cs
- BindingSourceDesigner.cs
- LogWriteRestartAreaState.cs
- ThumbButtonInfoCollection.cs
- Decorator.cs
- GridPattern.cs
- SecUtil.cs
- WorkflowServiceOperationListItem.cs
- TextEffect.cs
- ConnectionPoint.cs
- DecimalFormatter.cs
- DrawingVisualDrawingContext.cs
- SafeNativeMethods.cs
- TrustManager.cs
- XmlIgnoreAttribute.cs
- NativeWindow.cs
- PackageFilter.cs
- indexingfiltermarshaler.cs
- PartManifestEntry.cs
- TempFiles.cs
- AstTree.cs
- designeractionlistschangedeventargs.cs
- HostedImpersonationContext.cs
- BrushConverter.cs
- Cursor.cs
- TreeViewImageKeyConverter.cs
- SqlServer2KCompatibilityCheck.cs
- RenamedEventArgs.cs
- BulletedListEventArgs.cs
- BigIntegerStorage.cs
- EditorBrowsableAttribute.cs
- XmlTextReader.cs
- EditorPartChrome.cs
- BrowserCapabilitiesFactoryBase.cs
- ConfigurationManagerHelperFactory.cs
- AutomationEventArgs.cs
- MobileTextWriter.cs
- SemaphoreFullException.cs
- RequestCachePolicy.cs
- FixUpCollection.cs
- AssociatedControlConverter.cs
- LoginName.cs
- SuppressIldasmAttribute.cs
- XmlNullResolver.cs
- CompressionTracing.cs