Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- StringPropertyBuilder.cs
- AspCompat.cs
- ServiceConfigurationTraceRecord.cs
- DataTemplate.cs
- DocumentPageView.cs
- FixedTextPointer.cs
- XmlToDatasetMap.cs
- TypedRowHandler.cs
- ConfigXmlWhitespace.cs
- IfAction.cs
- EditableLabelControl.cs
- Utils.cs
- PolicyVersionConverter.cs
- HttpCapabilitiesBase.cs
- IfAction.cs
- RuntimeArgumentHandle.cs
- CompilerWrapper.cs
- InputMethod.cs
- ContentPropertyAttribute.cs
- AsyncInvokeOperation.cs
- PreviousTrackingServiceAttribute.cs
- ParameterBuilder.cs
- SvcMapFileLoader.cs
- XPathSingletonIterator.cs
- DataObjectPastingEventArgs.cs
- ZoneMembershipCondition.cs
- SystemTcpConnection.cs
- AuthenticationService.cs
- HttpContext.cs
- TemplateControl.cs
- DataGridViewUtilities.cs
- NetworkInformationPermission.cs
- PropertyInformationCollection.cs
- SqlWebEventProvider.cs
- _FtpDataStream.cs
- ListItemCollection.cs
- NonBatchDirectoryCompiler.cs
- DeclarationUpdate.cs
- BitmapEffectDrawingContextState.cs
- DetailsViewRow.cs
- AsymmetricAlgorithm.cs
- SafeFileMappingHandle.cs
- EdmError.cs
- TypeNameConverter.cs
- X509Certificate2.cs
- SQLChars.cs
- QuotaExceededException.cs
- NamespaceQuery.cs
- StorageSetMapping.cs
- DbConnectionPoolCounters.cs
- TableRowGroup.cs
- PointValueSerializer.cs
- RichTextBoxConstants.cs
- DataReceivedEventArgs.cs
- FastEncoderWindow.cs
- ReferentialConstraint.cs
- PageBuildProvider.cs
- EntityConnectionStringBuilderItem.cs
- Timeline.cs
- XmlSchemaComplexType.cs
- SafeNativeMethods.cs
- QilTargetType.cs
- BinaryNode.cs
- RootBrowserWindowProxy.cs
- LayeredChannelListener.cs
- HttpCacheVaryByContentEncodings.cs
- ColumnTypeConverter.cs
- DurableErrorHandler.cs
- AutomationPropertyInfo.cs
- EventBuilder.cs
- RecordConverter.cs
- DetailsViewModeEventArgs.cs
- EntityKey.cs
- InputLanguageEventArgs.cs
- CacheSection.cs
- DateTimeConverter2.cs
- documentsequencetextcontainer.cs
- MultiPropertyDescriptorGridEntry.cs
- CallbackTimeoutsBehavior.cs
- EntityAdapter.cs
- XamlClipboardData.cs
- PenContexts.cs
- CacheAxisQuery.cs
- HtmlInputReset.cs
- WrappedIUnknown.cs
- HttpConfigurationContext.cs
- HyperLinkField.cs
- BitmapSizeOptions.cs
- remotingproxy.cs
- InvalidCastException.cs
- SiblingIterators.cs
- Label.cs
- XmlDomTextWriter.cs
- TemplateKey.cs
- BindingMemberInfo.cs
- WorkItem.cs
- CheckBox.cs
- NegotiationTokenAuthenticatorState.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SemanticTag.cs