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
- URLIdentityPermission.cs
- Stackframe.cs
- PathGeometry.cs
- ContentDisposition.cs
- BezierSegment.cs
- RequestSecurityTokenResponseCollection.cs
- Condition.cs
- TransformerInfoCollection.cs
- GridErrorDlg.cs
- FieldBuilder.cs
- DefaultTextStoreTextComposition.cs
- UnsafeNativeMethods.cs
- FontFamily.cs
- DBNull.cs
- SamlAuthenticationClaimResource.cs
- FileUpload.cs
- MexNamedPipeBindingCollectionElement.cs
- LineMetrics.cs
- Int64AnimationBase.cs
- SubMenuStyleCollection.cs
- DataGridViewRowPrePaintEventArgs.cs
- DetailsViewRowCollection.cs
- LayoutUtils.cs
- ExcludeFromCodeCoverageAttribute.cs
- SecondaryIndex.cs
- EntityFrameworkVersions.cs
- HashRepartitionStream.cs
- Padding.cs
- CompatibleIComparer.cs
- PersonalizationStateInfoCollection.cs
- QuaternionAnimationBase.cs
- SiteMapDataSourceView.cs
- Mapping.cs
- SerializationInfoEnumerator.cs
- CodeEntryPointMethod.cs
- GAC.cs
- DbgUtil.cs
- ProviderConnectionPoint.cs
- MetadataFile.cs
- ZipFileInfo.cs
- ComponentDispatcherThread.cs
- MatrixStack.cs
- HeaderFilter.cs
- DataGridViewTextBoxColumn.cs
- IgnoreSectionHandler.cs
- OrderByBuilder.cs
- MetadataItemEmitter.cs
- GeometryDrawing.cs
- GPPOINT.cs
- XslVisitor.cs
- LicenseContext.cs
- ItemCheckEvent.cs
- CircleEase.cs
- DiscoveryServerProtocol.cs
- HandledEventArgs.cs
- LoginName.cs
- SQLDecimalStorage.cs
- StringConcat.cs
- SchemaTableOptionalColumn.cs
- ErrorInfoXmlDocument.cs
- ThreadAbortException.cs
- AdjustableArrowCap.cs
- WebPartManagerInternals.cs
- EnumMember.cs
- GridViewRowPresenter.cs
- XmlAttributeCollection.cs
- UIntPtr.cs
- ObjectDataSourceDesigner.cs
- QueryCacheManager.cs
- DataGridCellsPresenter.cs
- PathGeometry.cs
- XmlElementElement.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- XmlUTF8TextReader.cs
- BamlLocalizableResourceKey.cs
- StackBuilderSink.cs
- ColumnHeaderConverter.cs
- PropertyGridView.cs
- Serializer.cs
- DynamicResourceExtensionConverter.cs
- XMLSyntaxException.cs
- KeySplineConverter.cs
- TextEndOfLine.cs
- ResXResourceSet.cs
- HMACRIPEMD160.cs
- ElementHostAutomationPeer.cs
- BrowserTree.cs
- RegexReplacement.cs
- MatrixStack.cs
- QueryCacheManager.cs
- WhitespaceSignificantCollectionAttribute.cs
- CompModSwitches.cs
- ExportOptions.cs
- ProvidersHelper.cs
- AttributeUsageAttribute.cs
- ObjectItemAttributeAssemblyLoader.cs
- MarkupExtensionParser.cs
- File.cs
- IsolatedStorageFileStream.cs
- WebContext.cs