Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Activation / Configuration / SecurityIdentifierElementCollection.cs / 1 / SecurityIdentifierElementCollection.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Activation.Configuration { using System; using System.Collections; using System.Configuration; using System.Globalization; using System.ServiceModel; using System.ServiceModel.Activation; using System.ServiceModel.Configuration; using System.ServiceModel.Channels; using System.Security.Principal; [ConfigurationCollection(typeof(SecurityIdentifierElement))] public sealed class SecurityIdentifierElementCollection : ServiceModelConfigurationElementCollection{ public SecurityIdentifierElementCollection() : base() { } protected override Object GetElementKey(ConfigurationElement element) { if (element == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("element"); } SecurityIdentifierElement configElementKey = (SecurityIdentifierElement)element; return configElementKey.SecurityIdentifier.Value; } internal void SetDefaultIdentifiers() { if (Iis7Helper.IisVersion >= 7) { this.Add(new SecurityIdentifierElement(new SecurityIdentifier(ConfigurationStrings.IIS_IUSRSSid))); } this.Add(new SecurityIdentifierElement(new SecurityIdentifier(WellKnownSidType.LocalSystemSid, null))); this.Add(new SecurityIdentifierElement(new SecurityIdentifier(WellKnownSidType.BuiltinAdministratorsSid, null))); this.Add(new SecurityIdentifierElement(new SecurityIdentifier(WellKnownSidType.LocalServiceSid, null))); this.Add(new SecurityIdentifierElement(new SecurityIdentifier(WellKnownSidType.NetworkServiceSid, null))); } } } // 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
- followingsibling.cs
- DataGridTableStyleMappingNameEditor.cs
- LazyLoadBehavior.cs
- RectangleGeometry.cs
- MessageFilter.cs
- CodeCastExpression.cs
- TagPrefixCollection.cs
- ListViewPagedDataSource.cs
- SQLInt32Storage.cs
- CompoundFileIOPermission.cs
- safelink.cs
- Match.cs
- PreloadedPackages.cs
- AssemblyAttributes.cs
- SafeEventLogWriteHandle.cs
- UserControl.cs
- QilStrConcat.cs
- XPathEmptyIterator.cs
- objectresult_tresulttype.cs
- _SslStream.cs
- StreamInfo.cs
- AttributeParameterInfo.cs
- HtmlImageAdapter.cs
- Metafile.cs
- DemultiplexingDispatchMessageFormatter.cs
- XamlTypeWithExplicitNamespace.cs
- EntityViewGenerator.cs
- StorageMappingItemLoader.cs
- ObjectDataSourceEventArgs.cs
- MessageFormatterConverter.cs
- SafeWaitHandle.cs
- HashSetEqualityComparer.cs
- CollectionBuilder.cs
- DataMisalignedException.cs
- AuthorizationRule.cs
- TableRow.cs
- LayoutTable.cs
- HtmlControlAdapter.cs
- NCryptSafeHandles.cs
- TableAdapterManagerNameHandler.cs
- DrawingGroupDrawingContext.cs
- StopStoryboard.cs
- RegexWorker.cs
- XMLSyntaxException.cs
- BulletedListEventArgs.cs
- HttpRuntimeSection.cs
- ConfigXmlComment.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ArrayList.cs
- ApplicationInterop.cs
- DataServiceRequestArgs.cs
- ReaderWriterLockWrapper.cs
- Propagator.JoinPropagator.cs
- WebConfigurationHost.cs
- Ray3DHitTestResult.cs
- LineVisual.cs
- XmlUnspecifiedAttribute.cs
- ProviderCollection.cs
- FontEmbeddingManager.cs
- COAUTHIDENTITY.cs
- TypeToken.cs
- NavigationProgressEventArgs.cs
- VirtualizingPanel.cs
- WebDescriptionAttribute.cs
- BaseValidatorDesigner.cs
- TransactionFlowBindingElementImporter.cs
- Membership.cs
- ValidatorAttribute.cs
- FrameworkPropertyMetadata.cs
- ParenthesizePropertyNameAttribute.cs
- ErrorWebPart.cs
- DLinqAssociationProvider.cs
- FixedTextContainer.cs
- XmlUtf8RawTextWriter.cs
- Util.cs
- SendMessageChannelCache.cs
- SequenceDesignerAccessibleObject.cs
- RealizationContext.cs
- ConnectionStringsSection.cs
- DecimalMinMaxAggregationOperator.cs
- ProxyAttribute.cs
- Parameter.cs
- SamlEvidence.cs
- DeclaredTypeValidatorAttribute.cs
- SecurityChannelFactory.cs
- EmissiveMaterial.cs
- ProfileGroupSettingsCollection.cs
- NumberSubstitution.cs
- DateTimeFormat.cs
- ContentOperations.cs
- WindowClosedEventArgs.cs
- BaseDataListComponentEditor.cs
- RecognizedWordUnit.cs
- MemberProjectedSlot.cs
- IsolatedStorage.cs
- DataKeyArray.cs
- GetIsBrowserClientRequest.cs
- RuntimeConfigLKG.cs
- ConnectionsZoneAutoFormat.cs
- AstTree.cs