Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / PolicyImporterElement.cs / 1 / PolicyImporterElement.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System;
using System.Configuration;
using System.ServiceModel.Description;
public sealed partial class PolicyImporterElement : ConfigurationElement
{
public PolicyImporterElement()
{
}
public PolicyImporterElement(string type)
{
this.Type = type;
}
public PolicyImporterElement(Type type)
{
SubclassTypeValidator validator = new SubclassTypeValidator(typeof(IPolicyImportExtension));
validator.Validate(type);
this.Type = type.AssemblyQualifiedName;
}
[ConfigurationProperty(ConfigurationStrings.Type, Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
[StringValidator(MinLength = 1)]
public string Type
{
get
{ return (string)base[ConfigurationStrings.Type]; }
set
{
if (String.IsNullOrEmpty(value))
{
value = String.Empty;
}
base[ConfigurationStrings.Type] = value;
}
}
}
}
// 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
- EditCommandColumn.cs
- ThreadPool.cs
- HandoffBehavior.cs
- ValueSerializer.cs
- ByteFacetDescriptionElement.cs
- HttpProfileBase.cs
- ThreadLocal.cs
- ErrorTableItemStyle.cs
- Partitioner.cs
- BitmapMetadataBlob.cs
- StandardBindingImporter.cs
- CreateParams.cs
- CornerRadius.cs
- HttpListenerException.cs
- ChangeBlockUndoRecord.cs
- ComEventsSink.cs
- XmlWriterTraceListener.cs
- HyperLinkStyle.cs
- MainMenu.cs
- DataList.cs
- StringSource.cs
- UrlPath.cs
- Propagator.Evaluator.cs
- ServiceAppDomainAssociationProvider.cs
- XsdDuration.cs
- TextEditorTyping.cs
- TreeViewEvent.cs
- CookieHandler.cs
- StateDesigner.Helpers.cs
- HitTestParameters3D.cs
- HtmlEmptyTagControlBuilder.cs
- PrefixHandle.cs
- WorkflowRuntimeService.cs
- BinaryObjectReader.cs
- ThrowHelper.cs
- SafeFileMappingHandle.cs
- GPStream.cs
- ClientSideProviderDescription.cs
- iisPickupDirectory.cs
- OutputBuffer.cs
- EntityType.cs
- WebPartCatalogCloseVerb.cs
- ImageAttributes.cs
- CodeAttributeDeclaration.cs
- BitHelper.cs
- RelationshipType.cs
- FileDialogCustomPlacesCollection.cs
- DynamicQueryStringParameter.cs
- SQLBinaryStorage.cs
- SiteMapNodeCollection.cs
- SqlUnionizer.cs
- RepeatBehaviorConverter.cs
- TabControlCancelEvent.cs
- MenuCommand.cs
- FilterElement.cs
- _DisconnectOverlappedAsyncResult.cs
- ToolStripTextBox.cs
- WriteTimeStream.cs
- TextControl.cs
- Schema.cs
- MessageProtectionOrder.cs
- KeyGesture.cs
- DBSchemaRow.cs
- CaseInsensitiveComparer.cs
- WorkflowHostingEndpoint.cs
- WindowsRegion.cs
- CodeEventReferenceExpression.cs
- StreamResourceInfo.cs
- AutomationPropertyInfo.cs
- Command.cs
- ByteStream.cs
- ExternalException.cs
- BaseCodeDomTreeGenerator.cs
- ListDependantCardsRequest.cs
- TrustSection.cs
- ProxyFragment.cs
- UnsafeNativeMethods.cs
- MobileControlsSection.cs
- ResourceAttributes.cs
- ProtocolsSection.cs
- BufferedGraphics.cs
- Visual3D.cs
- AssemblyName.cs
- GlobalProxySelection.cs
- TextEditorCopyPaste.cs
- XmlCharCheckingWriter.cs
- _CacheStreams.cs
- BatchWriter.cs
- _SSPISessionCache.cs
- EntityCommandCompilationException.cs
- MenuCommandService.cs
- Terminate.cs
- EventProviderWriter.cs
- Sql8ConformanceChecker.cs
- BoolExpressionVisitors.cs
- Types.cs
- PointConverter.cs
- SessionStateContainer.cs
- ButtonChrome.cs
- DataServiceQuery.cs