Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / security / system / security / authentication / ExtendedProtection / configuration / ServiceNameElement.cs / 2 / ServiceNameElement.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System.Configuration;
namespace System.Security.Authentication.ExtendedProtection.Configuration
{
public sealed class ServiceNameElement : ConfigurationElement
{
public ServiceNameElement()
{
this.properties.Add(this.name);
}
[ConfigurationProperty(ExtendedProtectionConfigurationStrings.Name)]
public string Name
{
get { return (string)this[this.name]; }
set { this[this.name] = value; }
}
protected override ConfigurationPropertyCollection Properties
{
get
{
return this.properties;
}
}
internal string Key
{
get { return this.Name; }
}
ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection();
readonly ConfigurationProperty name =
new ConfigurationProperty(ExtendedProtectionConfigurationStrings.Name,
typeof(string), null,
ConfigurationPropertyOptions.IsRequired);
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System.Configuration;
namespace System.Security.Authentication.ExtendedProtection.Configuration
{
public sealed class ServiceNameElement : ConfigurationElement
{
public ServiceNameElement()
{
this.properties.Add(this.name);
}
[ConfigurationProperty(ExtendedProtectionConfigurationStrings.Name)]
public string Name
{
get { return (string)this[this.name]; }
set { this[this.name] = value; }
}
protected override ConfigurationPropertyCollection Properties
{
get
{
return this.properties;
}
}
internal string Key
{
get { return this.Name; }
}
ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection();
readonly ConfigurationProperty name =
new ConfigurationProperty(ExtendedProtectionConfigurationStrings.Name,
typeof(string), null,
ConfigurationPropertyOptions.IsRequired);
}
}
// 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
- oledbconnectionstring.cs
- ListenerSessionConnection.cs
- CounterSampleCalculator.cs
- DateTimeOffsetStorage.cs
- RestHandler.cs
- RangeBase.cs
- MemberDescriptor.cs
- SoapSchemaImporter.cs
- DbXmlEnabledProviderManifest.cs
- UrlMapping.cs
- ComponentEvent.cs
- GridViewEditEventArgs.cs
- CodeMemberProperty.cs
- ByteStreamMessageEncodingElement.cs
- ExpressionBuilder.cs
- QueryGenerator.cs
- XMLUtil.cs
- SocketManager.cs
- ObfuscateAssemblyAttribute.cs
- SmiXetterAccessMap.cs
- EmptyReadOnlyDictionaryInternal.cs
- BamlTreeMap.cs
- PropertyIDSet.cs
- XNodeNavigator.cs
- FunctionImportMapping.cs
- DynamicILGenerator.cs
- ClipboardProcessor.cs
- ClosableStream.cs
- OdbcException.cs
- FormViewInsertedEventArgs.cs
- Win32.cs
- CurrentChangedEventManager.cs
- documentsequencetextview.cs
- ScriptMethodAttribute.cs
- BooleanAnimationBase.cs
- Resources.Designer.cs
- PermissionListSet.cs
- ExpressionNormalizer.cs
- columnmapkeybuilder.cs
- DataGridViewCellStyleConverter.cs
- HTMLTextWriter.cs
- WorkflowServiceHostFactory.cs
- Rect.cs
- TrackingMemoryStreamFactory.cs
- VerticalAlignConverter.cs
- AttachmentCollection.cs
- DataGridDesigner.cs
- ConstNode.cs
- DataGridLinkButton.cs
- ScriptManagerProxy.cs
- XMLDiffLoader.cs
- CodeAttributeArgument.cs
- ViewCellRelation.cs
- GenericIdentity.cs
- Compiler.cs
- TagPrefixCollection.cs
- ReflectionPermission.cs
- SimplePropertyEntry.cs
- DataGridHeaderBorder.cs
- SelectionItemPattern.cs
- InfoCardRequestException.cs
- FixUpCollection.cs
- SchemaElementLookUpTable.cs
- DateTimeSerializationSection.cs
- DesignerWidgets.cs
- CompiledQuery.cs
- Int16Animation.cs
- TextReader.cs
- HttpModuleCollection.cs
- InputLanguage.cs
- Tuple.cs
- List.cs
- Oid.cs
- HebrewNumber.cs
- FixedSOMLineRanges.cs
- ParameterElementCollection.cs
- CapabilitiesRule.cs
- TextEditorContextMenu.cs
- PagePropertiesChangingEventArgs.cs
- SecurityContext.cs
- DbFunctionCommandTree.cs
- ToolStripGrip.cs
- AtomicFile.cs
- NumericExpr.cs
- TextFindEngine.cs
- ReadOnlyDataSource.cs
- SystemNetHelpers.cs
- XmlNullResolver.cs
- DataControlCommands.cs
- CodeExporter.cs
- DataGridViewCellCancelEventArgs.cs
- TargetFrameworkAttribute.cs
- dataobject.cs
- CodeConditionStatement.cs
- Soap12ProtocolImporter.cs
- DependencyStoreSurrogate.cs
- NullableConverter.cs
- EndPoint.cs
- ConditionalAttribute.cs
- EventLogEntryCollection.cs