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
- DataRecord.cs
- CuspData.cs
- NativeMethodsOther.cs
- RoutedEventArgs.cs
- MatchingStyle.cs
- ProtocolsConfigurationHandler.cs
- WriterOutput.cs
- NavigationService.cs
- Cursor.cs
- XmlSchemaComplexContent.cs
- ScrollableControlDesigner.cs
- KoreanCalendar.cs
- GetPageCompletedEventArgs.cs
- ProxyHwnd.cs
- Tokenizer.cs
- ThaiBuddhistCalendar.cs
- XmlElementCollection.cs
- FileFormatException.cs
- Oid.cs
- DataGridViewButtonCell.cs
- HybridDictionary.cs
- EncryptedType.cs
- DrawingServices.cs
- MinimizableAttributeTypeConverter.cs
- GeneralTransformCollection.cs
- TraceContextRecord.cs
- BindingListCollectionView.cs
- HealthMonitoringSectionHelper.cs
- CheckBoxStandardAdapter.cs
- metadatamappinghashervisitor.cs
- ActivityDelegate.cs
- RemotingException.cs
- HttpHandlerActionCollection.cs
- TCPClient.cs
- WebPartConnectVerb.cs
- XmlSchemaValidator.cs
- BitmapEffectvisualstate.cs
- ListViewInsertedEventArgs.cs
- UserControlFileEditor.cs
- GenericsNotImplementedException.cs
- LabelDesigner.cs
- CodeVariableReferenceExpression.cs
- EventListenerClientSide.cs
- StringBuilder.cs
- CommandLibraryHelper.cs
- WebPartTransformer.cs
- FacetChecker.cs
- CodeRemoveEventStatement.cs
- ConfigurationSectionCollection.cs
- OleDbTransaction.cs
- FileVersionInfo.cs
- ProfileParameter.cs
- ThicknessKeyFrameCollection.cs
- Vector3DAnimationBase.cs
- WinFormsSecurity.cs
- ServiceModelPerformanceCounters.cs
- WebRequestModuleElementCollection.cs
- DataGridViewControlCollection.cs
- PriorityItem.cs
- HttpVersion.cs
- __TransparentProxy.cs
- DataServiceHost.cs
- XmlEncodedRawTextWriter.cs
- SHA384Managed.cs
- ExpandCollapseProviderWrapper.cs
- RSAOAEPKeyExchangeDeformatter.cs
- CodeTypeReferenceExpression.cs
- BaseValidator.cs
- ImageDrawing.cs
- UndirectedGraph.cs
- AutoResetEvent.cs
- DataListCommandEventArgs.cs
- Model3DCollection.cs
- PriorityItem.cs
- ProxyGenerator.cs
- initElementDictionary.cs
- PropertyMapper.cs
- CommentGlyph.cs
- BitmapEffectInput.cs
- CopyAction.cs
- ExtenderControl.cs
- RightsManagementEncryptedStream.cs
- RepeaterCommandEventArgs.cs
- DataServiceQueryOfT.cs
- DbProviderFactory.cs
- DoubleLinkListEnumerator.cs
- ExpressionVisitor.cs
- WorkflowClientDeliverMessageWrapper.cs
- ChannelBinding.cs
- GridErrorDlg.cs
- ParseHttpDate.cs
- CustomAttributeBuilder.cs
- BaseParser.cs
- CodeDelegateCreateExpression.cs
- WindowInteractionStateTracker.cs
- LocalIdCollection.cs
- TextRunCacheImp.cs
- CompiledAction.cs
- SevenBitStream.cs
- IndexExpression.cs