Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Configuration / WsiProfilesElement.cs / 1305376 / WsiProfilesElement.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.Web.Services.Configuration
{
using System;
using System.Configuration;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Security.Permissions;
public sealed class WsiProfilesElement : ConfigurationElement
{
// These three constructors are used by the configuration system.
public WsiProfilesElement() : base()
{
this.properties.Add(this.name);
}
public WsiProfilesElement(WsiProfiles name) : this()
{
this.Name = name;
}
[ConfigurationProperty("name", IsKey = true, DefaultValue = WsiProfiles.None)]
public WsiProfiles Name
{
get { return (WsiProfiles)base[this.name]; }
set
{
if (!IsValidWsiProfilesValue(value))
{
throw new ArgumentOutOfRangeException("value");
}
base[this.name] = value;
}
}
protected override ConfigurationPropertyCollection Properties
{
get { return this.properties; }
}
bool IsValidWsiProfilesValue(WsiProfiles value)
{
return Enum.IsDefined(typeof(WsiProfiles), value);
}
ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection();
readonly ConfigurationProperty name = new ConfigurationProperty("name", typeof(WsiProfiles), WsiProfiles.None, ConfigurationPropertyOptions.IsKey);
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.Web.Services.Configuration
{
using System;
using System.Configuration;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Security.Permissions;
public sealed class WsiProfilesElement : ConfigurationElement
{
// These three constructors are used by the configuration system.
public WsiProfilesElement() : base()
{
this.properties.Add(this.name);
}
public WsiProfilesElement(WsiProfiles name) : this()
{
this.Name = name;
}
[ConfigurationProperty("name", IsKey = true, DefaultValue = WsiProfiles.None)]
public WsiProfiles Name
{
get { return (WsiProfiles)base[this.name]; }
set
{
if (!IsValidWsiProfilesValue(value))
{
throw new ArgumentOutOfRangeException("value");
}
base[this.name] = value;
}
}
protected override ConfigurationPropertyCollection Properties
{
get { return this.properties; }
}
bool IsValidWsiProfilesValue(WsiProfiles value)
{
return Enum.IsDefined(typeof(WsiProfiles), value);
}
ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection();
readonly ConfigurationProperty name = new ConfigurationProperty("name", typeof(WsiProfiles), WsiProfiles.None, 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
- LinqDataSourceHelper.cs
- DocumentOrderComparer.cs
- ControlUtil.cs
- ResetableIterator.cs
- QuaternionValueSerializer.cs
- RecordsAffectedEventArgs.cs
- PermissionAttributes.cs
- __ComObject.cs
- XmlSchemaCollection.cs
- EventProviderWriter.cs
- TimeManager.cs
- SamlAuthorizationDecisionClaimResource.cs
- Timer.cs
- LogLogRecordHeader.cs
- CodeNamespaceImport.cs
- PreservationFileReader.cs
- MexNamedPipeBindingCollectionElement.cs
- sqlser.cs
- MonitorWrapper.cs
- RepeaterItemCollection.cs
- RegexCaptureCollection.cs
- StickyNoteContentControl.cs
- CodeIterationStatement.cs
- MergablePropertyAttribute.cs
- AutoFocusStyle.xaml.cs
- CommonGetThemePartSize.cs
- unsafeIndexingFilterStream.cs
- ResXResourceReader.cs
- ContextStaticAttribute.cs
- ErrorRuntimeConfig.cs
- ObjectSet.cs
- DataSpaceManager.cs
- ToolStripManager.cs
- NetWebProxyFinder.cs
- ApplicationBuildProvider.cs
- WorkflowExecutor.cs
- HtmlTableRow.cs
- Component.cs
- ByteStreamMessageUtility.cs
- PictureBox.cs
- OleDbDataReader.cs
- SafeNativeMethodsCLR.cs
- ElementMarkupObject.cs
- Int32AnimationUsingKeyFrames.cs
- Debug.cs
- DBParameter.cs
- WebPartHelpVerb.cs
- ObjectDisposedException.cs
- CompleteWizardStep.cs
- DataService.cs
- ViewgenGatekeeper.cs
- BitmapFrame.cs
- SchemaTableOptionalColumn.cs
- TextElementCollection.cs
- OperationContext.cs
- VisualStyleElement.cs
- BaseTransportHeaders.cs
- BooleanToVisibilityConverter.cs
- FontUnitConverter.cs
- BindingContext.cs
- EmbeddedObject.cs
- TopClause.cs
- PerfService.cs
- CroppedBitmap.cs
- GradientStop.cs
- ReadingWritingEntityEventArgs.cs
- Tuple.cs
- LinkArea.cs
- DynamicMethod.cs
- HostElement.cs
- TimeStampChecker.cs
- QueryPageSettingsEventArgs.cs
- EventSinkHelperWriter.cs
- Token.cs
- WebPartPersonalization.cs
- XamlLoadErrorInfo.cs
- RenameRuleObjectDialog.Designer.cs
- DesignerHierarchicalDataSourceView.cs
- ToolboxItemCollection.cs
- StrongNameSignatureInformation.cs
- WebScriptMetadataMessage.cs
- ValidatorCompatibilityHelper.cs
- MemberMaps.cs
- ServerValidateEventArgs.cs
- WorkflowTransactionService.cs
- ErrorHandler.cs
- TimeZone.cs
- TextContainerHelper.cs
- OLEDB_Enum.cs
- WindowsListBox.cs
- XmlTextReaderImpl.cs
- Module.cs
- CodeAttributeArgumentCollection.cs
- HebrewNumber.cs
- CachedRequestParams.cs
- Bezier.cs
- HostExecutionContextManager.cs
- SessionStateContainer.cs
- TableRow.cs
- DetailsViewPagerRow.cs