Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Security / WindowsServiceCredential.cs / 1 / WindowsServiceCredential.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Security { public sealed class WindowsServiceCredential { bool allowAnonymousLogons = SspiSecurityTokenProvider.DefaultAllowUnauthenticatedCallers; bool includeWindowsGroups = SspiSecurityTokenProvider.DefaultExtractWindowsGroupClaims; bool isReadOnly; internal WindowsServiceCredential() { // empty } internal WindowsServiceCredential(WindowsServiceCredential other) { this.allowAnonymousLogons = other.allowAnonymousLogons; this.includeWindowsGroups = other.includeWindowsGroups; this.isReadOnly = other.isReadOnly; } public bool AllowAnonymousLogons { get { return this.allowAnonymousLogons; } set { ThrowIfImmutable(); this.allowAnonymousLogons = value; } } public bool IncludeWindowsGroups { get { return this.includeWindowsGroups; } set { ThrowIfImmutable(); this.includeWindowsGroups = 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
- SafeEventLogReadHandle.cs
- CodePageUtils.cs
- GridViewColumnHeader.cs
- UnregisterInfo.cs
- ItemCollection.cs
- XmlCharacterData.cs
- AsymmetricAlgorithm.cs
- WhitespaceRuleReader.cs
- ExpandableObjectConverter.cs
- InternalPermissions.cs
- TaskResultSetter.cs
- MappingMetadataHelper.cs
- NamedObject.cs
- PolicyLevel.cs
- GridViewHeaderRowPresenter.cs
- SevenBitStream.cs
- MenuItemCollection.cs
- TabletCollection.cs
- DataGridPagerStyle.cs
- XmlParserContext.cs
- SpeakCompletedEventArgs.cs
- ValidationRuleCollection.cs
- EdmProperty.cs
- RelationshipConstraintValidator.cs
- DeclaredTypeValidator.cs
- PopOutPanel.cs
- ImageCodecInfoPrivate.cs
- AllMembershipCondition.cs
- Conditional.cs
- Root.cs
- XmlDocument.cs
- SiteMapNodeCollection.cs
- AutoGeneratedFieldProperties.cs
- WebExceptionStatus.cs
- WebPartDescription.cs
- ErrorInfoXmlDocument.cs
- PageStatePersister.cs
- _NegotiateClient.cs
- PasswordRecovery.cs
- SecurityKeyIdentifier.cs
- RC2.cs
- DataGridTextBoxColumn.cs
- NamedPipeChannelListener.cs
- ServiceHostingEnvironment.cs
- SinglePageViewer.cs
- ValueConversionAttribute.cs
- CancelEventArgs.cs
- ResourceSet.cs
- XpsFilter.cs
- xamlnodes.cs
- UrlPath.cs
- UpdateException.cs
- DataGridRow.cs
- Profiler.cs
- ReliableRequestSessionChannel.cs
- TypeNameConverter.cs
- NativeCompoundFileAPIs.cs
- ManagementEventWatcher.cs
- AuthorizationPolicyTypeElement.cs
- CustomCredentialPolicy.cs
- ServiceContractListItemList.cs
- Events.cs
- __Error.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- TrackingServices.cs
- EdmScalarPropertyAttribute.cs
- Attributes.cs
- ExceptionHandlers.cs
- UInt64Converter.cs
- DivideByZeroException.cs
- QueueProcessor.cs
- GridItemCollection.cs
- DoubleCollection.cs
- ReflectEventDescriptor.cs
- HierarchicalDataSourceControl.cs
- EmbossBitmapEffect.cs
- InputBindingCollection.cs
- FontWeightConverter.cs
- BooleanProjectedSlot.cs
- SqlCommand.cs
- Thread.cs
- WebPart.cs
- JsonFormatMapping.cs
- RSAOAEPKeyExchangeDeformatter.cs
- UidPropertyAttribute.cs
- ThicknessKeyFrameCollection.cs
- TextSelectionHelper.cs
- XmlSchema.cs
- UpdateException.cs
- ToolStripSplitButton.cs
- SplayTreeNode.cs
- GeometryCombineModeValidation.cs
- EntityProxyTypeInfo.cs
- ElementUtil.cs
- BasicHttpSecurityElement.cs
- GenericPrincipal.cs
- PolyBezierSegment.cs
- HttpModule.cs
- SelectionItemProviderWrapper.cs
- ViewValidator.cs