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
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- ZipIOExtraFieldZip64Element.cs
- ObjectDataSourceEventArgs.cs
- HttpVersion.cs
- RequestResizeEvent.cs
- DEREncoding.cs
- CapiSymmetricAlgorithm.cs
- ExtensionCollection.cs
- ObjectItemCollection.cs
- FontUnitConverter.cs
- keycontainerpermission.cs
- PolyLineSegment.cs
- Line.cs
- RecommendedAsConfigurableAttribute.cs
- SafeArrayTypeMismatchException.cs
- ObjectSecurity.cs
- CodeCommentStatementCollection.cs
- ShutDownListener.cs
- AbsoluteQuery.cs
- DesignerActionUIStateChangeEventArgs.cs
- MetadataPropertyCollection.cs
- PtsPage.cs
- DesignObjectWrapper.cs
- Size.cs
- SecurityBindingElementImporter.cs
- SettingsPropertyIsReadOnlyException.cs
- ParsedAttributeCollection.cs
- RootProfilePropertySettingsCollection.cs
- Accessible.cs
- MessageQueueCriteria.cs
- _Win32.cs
- DbBuffer.cs
- CodeExporter.cs
- SqlClientPermission.cs
- HierarchicalDataSourceIDConverter.cs
- InternalConfirm.cs
- CursorConverter.cs
- CacheMemory.cs
- Point4DConverter.cs
- SettingsAttributes.cs
- DeleteMemberBinder.cs
- RoleExceptions.cs
- WindowsComboBox.cs
- webproxy.cs
- ChannelTracker.cs
- DeviceContext2.cs
- PackagePartCollection.cs
- MetadataArtifactLoaderFile.cs
- TextRangeEditTables.cs
- baseaxisquery.cs
- RoleBoolean.cs
- Cursors.cs
- BaseDataListDesigner.cs
- ObjectAnimationBase.cs
- ObjectPropertyMapping.cs
- mediaclock.cs
- MetafileHeaderWmf.cs
- AddInServer.cs
- CodeExpressionCollection.cs
- HttpListenerResponse.cs
- Update.cs
- MarkupCompiler.cs
- WebPartConnectionsCancelEventArgs.cs
- CustomSignedXml.cs
- WSSecurityTokenSerializer.cs
- SqlAliasesReferenced.cs
- SrgsSemanticInterpretationTag.cs
- MemberPathMap.cs
- KnownBoxes.cs
- PropertyEmitterBase.cs
- NavigationExpr.cs
- OleDbDataReader.cs
- CopyAttributesAction.cs
- DataGridViewCellPaintingEventArgs.cs
- OutputCacheSettings.cs
- SqlProviderUtilities.cs
- BrushConverter.cs
- MailHeaderInfo.cs
- Exception.cs
- ContactManager.cs
- BindingList.cs
- ProfileInfo.cs
- IFlowDocumentViewer.cs
- TextFormatterImp.cs
- ReadWriteSpinLock.cs
- MediaElement.cs
- PerspectiveCamera.cs
- CompilerErrorCollection.cs
- XmlReflectionImporter.cs
- _Semaphore.cs
- CngAlgorithmGroup.cs
- SimpleRecyclingCache.cs
- DesignerAttributeInfo.cs
- ClientProxyGenerator.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- XmlQueryOutput.cs
- TypeConverter.cs
- RsaSecurityToken.cs
- PolicyException.cs
- SelectedGridItemChangedEvent.cs