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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DebugViewWriter.cs
- _ListenerRequestStream.cs
- XPathBuilder.cs
- FtpWebResponse.cs
- CheckBoxStandardAdapter.cs
- TextEditorSpelling.cs
- BamlTreeNode.cs
- HtmlInputSubmit.cs
- EventRouteFactory.cs
- XmlException.cs
- RequestDescription.cs
- SqlDataSourceSelectingEventArgs.cs
- NamespaceQuery.cs
- PropertyMetadata.cs
- FolderNameEditor.cs
- SecurityTokenContainer.cs
- PerspectiveCamera.cs
- Int64AnimationBase.cs
- exports.cs
- IntSecurity.cs
- CollectionEditVerbManager.cs
- WindowInteropHelper.cs
- Matrix3DConverter.cs
- GridViewCellAutomationPeer.cs
- AnimationTimeline.cs
- XmlArrayItemAttribute.cs
- SqlProfileProvider.cs
- Policy.cs
- ProjectionCamera.cs
- Memoizer.cs
- BrushValueSerializer.cs
- MetadataUtilsSmi.cs
- DataObjectCopyingEventArgs.cs
- RestClientProxyHandler.cs
- ComponentDispatcher.cs
- ZipIOExtraFieldZip64Element.cs
- FixedSOMFixedBlock.cs
- ImageSourceValueSerializer.cs
- ToolStripDropTargetManager.cs
- XmlSchemaParticle.cs
- NavigationEventArgs.cs
- MaterializeFromAtom.cs
- Panel.cs
- SkinBuilder.cs
- ReaderContextStackData.cs
- CompositeDataBoundControl.cs
- AttachedPropertyMethodSelector.cs
- ProfileInfo.cs
- CFGGrammar.cs
- DbConvert.cs
- COM2Properties.cs
- BuildResultCache.cs
- SchemaTableColumn.cs
- DesignTimeType.cs
- DataSet.cs
- SqlDataSourceEnumerator.cs
- SchemaCollectionPreprocessor.cs
- XmlEntityReference.cs
- StreamingContext.cs
- IisTraceWebEventProvider.cs
- RoutedEvent.cs
- IconBitmapDecoder.cs
- HyperLinkStyle.cs
- XamlPathDataSerializer.cs
- AuthorizationRuleCollection.cs
- HttpHeaderCollection.cs
- RawUIStateInputReport.cs
- PathFigureCollectionValueSerializer.cs
- LocatorGroup.cs
- TypefaceMap.cs
- Matrix3D.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- EncryptedReference.cs
- SharedPersonalizationStateInfo.cs
- UInt64.cs
- HttpDictionary.cs
- StylusPointPropertyUnit.cs
- ShapeTypeface.cs
- CheckBoxList.cs
- Baml2006ReaderSettings.cs
- OleDbPropertySetGuid.cs
- DataContractJsonSerializer.cs
- BoolExpression.cs
- ByteRangeDownloader.cs
- BitArray.cs
- Closure.cs
- Separator.cs
- XmlSchemaAttribute.cs
- OpenFileDialog.cs
- ConfigurationSection.cs
- AnnotationHelper.cs
- QuotedStringFormatReader.cs
- templategroup.cs
- BufferModesCollection.cs
- ComponentResourceKeyConverter.cs
- IssuedTokenClientBehaviorsElement.cs
- UnmanagedHandle.cs
- SqlMethodCallConverter.cs
- RoamingStoreFileUtility.cs
- DataGridRow.cs