Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / Net / System / Net / Configuration / AuthenticationModuleElement.cs / 1 / AuthenticationModuleElement.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Reflection; using System.Security.Permissions; public sealed class AuthenticationModuleElement : ConfigurationElement { public AuthenticationModuleElement() { this.properties.Add(this.type); } public AuthenticationModuleElement(string typeName) : this() { if (typeName != (string)this.type.DefaultValue) { this.Type = typeName; } } protected override ConfigurationPropertyCollection Properties { get { return this.properties; } } [ConfigurationProperty(ConfigurationStrings.Type, IsRequired=true, IsKey = true)] public string Type { get { return (string)this[this.type]; } set { this[this.type] = value; } } internal string Key { get { return this.Type; } } ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); readonly ConfigurationProperty type = new ConfigurationProperty(ConfigurationStrings.Type, typeof(string), null, ConfigurationPropertyOptions.IsKey); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Net.Configuration { using System; using System.Configuration; using System.Reflection; using System.Security.Permissions; public sealed class AuthenticationModuleElement : ConfigurationElement { public AuthenticationModuleElement() { this.properties.Add(this.type); } public AuthenticationModuleElement(string typeName) : this() { if (typeName != (string)this.type.DefaultValue) { this.Type = typeName; } } protected override ConfigurationPropertyCollection Properties { get { return this.properties; } } [ConfigurationProperty(ConfigurationStrings.Type, IsRequired=true, IsKey = true)] public string Type { get { return (string)this[this.type]; } set { this[this.type] = value; } } internal string Key { get { return this.Type; } } ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); readonly ConfigurationProperty type = new ConfigurationProperty(ConfigurationStrings.Type, typeof(string), null, ConfigurationPropertyOptions.IsKey); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSerializableReader.cs
- ReliableSessionBindingElementImporter.cs
- SystemResourceHost.cs
- COM2ICategorizePropertiesHandler.cs
- TypeProvider.cs
- OleDbDataReader.cs
- InfoCardTraceRecord.cs
- DBSchemaRow.cs
- TextReturnReader.cs
- TreeViewImageKeyConverter.cs
- localization.cs
- SqlProviderManifest.cs
- ThreadAttributes.cs
- WindowsRegion.cs
- RuleInfoComparer.cs
- ToolStripPanelSelectionBehavior.cs
- UpdateDelegates.Generated.cs
- DataGridColumn.cs
- ReferencedAssembly.cs
- Debugger.cs
- BeginEvent.cs
- SchemaDeclBase.cs
- CultureInfoConverter.cs
- ComplexBindingPropertiesAttribute.cs
- FloaterBaseParaClient.cs
- Verify.cs
- Closure.cs
- RadioButton.cs
- CatalogPart.cs
- RestHandler.cs
- FtpWebRequest.cs
- RemotingAttributes.cs
- RequiredFieldValidator.cs
- BasicCellRelation.cs
- ArraySegment.cs
- EventLogTraceListener.cs
- Journaling.cs
- WindowsGraphics2.cs
- GcHandle.cs
- TransportBindingElementImporter.cs
- EdgeModeValidation.cs
- ImageDesigner.cs
- UnsafeNativeMethods.cs
- InputScopeManager.cs
- DataKeyArray.cs
- SmtpAuthenticationManager.cs
- ObjectReaderCompiler.cs
- NumericUpDownAccelerationCollection.cs
- XmlSchemaGroup.cs
- SafeRightsManagementSessionHandle.cs
- AdapterSwitches.cs
- DispatcherObject.cs
- ValidatorCompatibilityHelper.cs
- coordinatorscratchpad.cs
- HttpFileCollection.cs
- DetailsViewModeEventArgs.cs
- XmlSchemaAppInfo.cs
- MetricEntry.cs
- ClientType.cs
- ColorBlend.cs
- TokenFactoryCredential.cs
- EditorPartChrome.cs
- EncryptedData.cs
- QilName.cs
- BuildManager.cs
- DocumentOrderQuery.cs
- Msec.cs
- WindowsGraphicsWrapper.cs
- SharedConnectionWorkflowTransactionService.cs
- BaseDataBoundControl.cs
- altserialization.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- TimeIntervalCollection.cs
- DisplayInformation.cs
- GetPolicyDetailsRequest.cs
- TransactionCache.cs
- CatalogZoneBase.cs
- PerformanceCounterPermissionEntryCollection.cs
- RowUpdatedEventArgs.cs
- SurrogateSelector.cs
- TrackingMemoryStream.cs
- ConfigurationLockCollection.cs
- SqlNodeAnnotation.cs
- BmpBitmapEncoder.cs
- SoapSchemaExporter.cs
- WindowsIdentity.cs
- VScrollProperties.cs
- TextElementCollection.cs
- ResXResourceSet.cs
- DrawingState.cs
- TextTreeTextBlock.cs
- Debugger.cs
- DateTimeConverter2.cs
- TreeNodeStyleCollection.cs
- LogPolicy.cs
- OpCodes.cs
- Transform.cs
- Selector.cs
- FamilyCollection.cs
- EntitySqlQueryCacheKey.cs