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
- GenericAuthenticationEventArgs.cs
- DesignerObjectListAdapter.cs
- ManipulationDeltaEventArgs.cs
- HttpCachePolicy.cs
- DateTimeOffsetStorage.cs
- PlatformCulture.cs
- ProxyWebPartManager.cs
- SQLInt32.cs
- DataColumnMapping.cs
- BaseDataList.cs
- FunctionImportElement.cs
- ResourceManager.cs
- XamlStyleSerializer.cs
- Converter.cs
- CustomError.cs
- MetadataArtifactLoaderResource.cs
- SchemaObjectWriter.cs
- unsafenativemethodstextservices.cs
- DrawListViewSubItemEventArgs.cs
- ApplicationFileCodeDomTreeGenerator.cs
- RewritingPass.cs
- Fonts.cs
- PointHitTestResult.cs
- login.cs
- EntityDataSourceChangedEventArgs.cs
- OdbcConnection.cs
- NativeMethods.cs
- RadioButtonDesigner.cs
- SizeAnimationUsingKeyFrames.cs
- SubclassTypeValidatorAttribute.cs
- FixedSOMTable.cs
- PrinterResolution.cs
- OdbcConnectionHandle.cs
- LocalizableAttribute.cs
- Evidence.cs
- Pen.cs
- ResourceExpression.cs
- PolicyLevel.cs
- AppDomain.cs
- ListBindableAttribute.cs
- TypeBuilderInstantiation.cs
- ClientCultureInfo.cs
- DiagnosticTraceSource.cs
- ConsumerConnectionPointCollection.cs
- TypeInfo.cs
- DiagnosticStrings.cs
- SqlMultiplexer.cs
- Soap.cs
- DataContractSerializerMessageContractImporter.cs
- ViewManager.cs
- InternalConfigSettingsFactory.cs
- ImageListImageEditor.cs
- Point3DAnimationBase.cs
- TouchPoint.cs
- DataRowExtensions.cs
- PropertiesTab.cs
- Solver.cs
- SystemIPv6InterfaceProperties.cs
- BufferModeSettings.cs
- GridErrorDlg.cs
- ParallelEnumerableWrapper.cs
- QueueSurrogate.cs
- HostingPreferredMapPath.cs
- WebHttpElement.cs
- ItemCheckEvent.cs
- QuadraticBezierSegment.cs
- ExpandedWrapper.cs
- HttpProtocolImporter.cs
- SecurityCredentialsManager.cs
- WsdlBuildProvider.cs
- PolicyDesigner.cs
- Typeface.cs
- XmlDataSourceView.cs
- SupportingTokenAuthenticatorSpecification.cs
- BookmarkInfo.cs
- _IPv4Address.cs
- ClientRuntimeConfig.cs
- ToolStripSystemRenderer.cs
- ComplexPropertyEntry.cs
- Geometry.cs
- GraphicsPath.cs
- ADMembershipUser.cs
- SystemFonts.cs
- BindableTemplateBuilder.cs
- ExpressionPrinter.cs
- TypeListConverter.cs
- UrlAuthorizationModule.cs
- XmlSchemaSubstitutionGroup.cs
- ToolStripControlHost.cs
- ParenExpr.cs
- RepeatBehavior.cs
- InvalidOleVariantTypeException.cs
- CommandLibraryHelper.cs
- WebPartDeleteVerb.cs
- MessageSmuggler.cs
- BaseServiceProvider.cs
- CultureSpecificStringDictionary.cs
- OletxTransactionFormatter.cs
- DataObjectAttribute.cs
- WebPartEditorCancelVerb.cs