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
- SafeViewOfFileHandle.cs
- UnsafeNativeMethods.cs
- FreezableOperations.cs
- FileVersionInfo.cs
- ColorKeyFrameCollection.cs
- WebPartUserCapability.cs
- FloaterParagraph.cs
- RelatedPropertyManager.cs
- InlinedAggregationOperatorEnumerator.cs
- ArgumentOutOfRangeException.cs
- EtwTrace.cs
- BitmapDownload.cs
- Rotation3DAnimation.cs
- IPGlobalProperties.cs
- NestedContainer.cs
- SqlDataSource.cs
- NativeRecognizer.cs
- LayoutEngine.cs
- DesignerSerializationManager.cs
- WCFBuildProvider.cs
- PerspectiveCamera.cs
- TextMarkerSource.cs
- DataServiceConfiguration.cs
- AdPostCacheSubstitution.cs
- SegmentInfo.cs
- Internal.cs
- ExpandableObjectConverter.cs
- CacheDependency.cs
- WeakReferenceEnumerator.cs
- SqlParameterCollection.cs
- QilValidationVisitor.cs
- HintTextMaxWidthConverter.cs
- LookupNode.cs
- SystemResources.cs
- XsltLoader.cs
- PeerTransportSecuritySettings.cs
- SimpleTableProvider.cs
- Sql8ExpressionRewriter.cs
- GridLength.cs
- NumberSubstitution.cs
- SessionPageStatePersister.cs
- StringResourceManager.cs
- MediaSystem.cs
- XsdDataContractExporter.cs
- AffineTransform3D.cs
- MarkupCompiler.cs
- InputProcessorProfilesLoader.cs
- ThumbButtonInfo.cs
- SmtpClient.cs
- TablePattern.cs
- PopupControlService.cs
- ViewValidator.cs
- ToolStripActionList.cs
- ThaiBuddhistCalendar.cs
- WindowsListViewScroll.cs
- WebPartConnectionCollection.cs
- BaseCollection.cs
- DocumentScope.cs
- BrowserCapabilitiesCodeGenerator.cs
- GAC.cs
- DocumentXPathNavigator.cs
- ImageField.cs
- _Rfc2616CacheValidators.cs
- BitmapEffectGroup.cs
- ResourcePermissionBase.cs
- XomlCompilerResults.cs
- SQLMoneyStorage.cs
- TextElementEditingBehaviorAttribute.cs
- SizeKeyFrameCollection.cs
- TextServicesDisplayAttribute.cs
- ClientSettings.cs
- ExpressionParser.cs
- SecurityTokenValidationException.cs
- HandleExceptionArgs.cs
- SByteConverter.cs
- ListBox.cs
- ContentElement.cs
- DataBindingCollectionEditor.cs
- ZoneLinkButton.cs
- DataBinding.cs
- CapabilitiesUse.cs
- Argument.cs
- XmlPreloadedResolver.cs
- TreeNodeBindingCollection.cs
- UnitControl.cs
- DataFormat.cs
- RegexCompiler.cs
- MSAANativeProvider.cs
- CodeDOMUtility.cs
- StateBag.cs
- ProtocolsConfigurationHandler.cs
- ListSortDescriptionCollection.cs
- ButtonChrome.cs
- XmlSchemaParticle.cs
- ExpressionCopier.cs
- AppearanceEditorPart.cs
- PermissionSetTriple.cs
- SspiSafeHandles.cs
- DataListItem.cs
- SudsWriter.cs