Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / NamedPipeTransportSecurityElement.cs / 1 / NamedPipeTransportSecurityElement.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System.Configuration;
using System.ServiceModel.Channels;
using System.Globalization;
using System.Net;
using System.Net.Security;
using System.ServiceModel;
using System.ServiceModel.Security;
using System.ComponentModel;
public sealed partial class NamedPipeTransportSecurityElement : ConfigurationElement
{
[ConfigurationProperty(ConfigurationStrings.ProtectionLevel, DefaultValue = NamedPipeTransportSecurity.DefaultProtectionLevel)]
[ServiceModelEnumValidator(typeof(ProtectionLevelHelper))]
public ProtectionLevel ProtectionLevel
{
get { return (ProtectionLevel)base[ConfigurationStrings.ProtectionLevel]; }
set { base[ConfigurationStrings.ProtectionLevel] = value; }
}
internal void ApplyConfiguration(NamedPipeTransportSecurity security)
{
if (security == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security");
}
security.ProtectionLevel = this.ProtectionLevel;
}
internal void InitializeFrom(NamedPipeTransportSecurity security)
{
if (security == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security");
}
this.ProtectionLevel = security.ProtectionLevel;
}
}
}
// 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
- WebFormDesignerActionService.cs
- MaterialGroup.cs
- AdornerDecorator.cs
- ContextItemManager.cs
- CodeDomSerializerException.cs
- HighlightVisual.cs
- CodeCastExpression.cs
- WsatServiceCertificate.cs
- Model3D.cs
- ObjectListSelectEventArgs.cs
- MenuItem.cs
- DataGridViewCheckBoxCell.cs
- SeverityFilter.cs
- PropVariant.cs
- MenuItem.cs
- CatalogZone.cs
- NativeBuffer.cs
- BitmapPalettes.cs
- TextBox.cs
- EncoderParameter.cs
- PaginationProgressEventArgs.cs
- ToggleButtonAutomationPeer.cs
- RotateTransform3D.cs
- SamlAuthorityBinding.cs
- OLEDB_Enum.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SqlClientWrapperSmiStream.cs
- MembershipAdapter.cs
- WebHttpBehavior.cs
- WebContext.cs
- Block.cs
- LinqToSqlWrapper.cs
- Errors.cs
- DesignColumn.cs
- PageRanges.cs
- DSACryptoServiceProvider.cs
- ProviderSettingsCollection.cs
- PageCache.cs
- SoapFault.cs
- ClusterSafeNativeMethods.cs
- FlowLayoutSettings.cs
- Literal.cs
- CompilerErrorCollection.cs
- XsltInput.cs
- ObjectStateEntryDbDataRecord.cs
- EmitterCache.cs
- Transform3DGroup.cs
- SmtpNegotiateAuthenticationModule.cs
- MatrixValueSerializer.cs
- HttpStreamMessageEncoderFactory.cs
- DocumentXPathNavigator.cs
- HttpModulesSection.cs
- NativeBuffer.cs
- ManagedIStream.cs
- SweepDirectionValidation.cs
- URIFormatException.cs
- DataGridViewDataConnection.cs
- HtmlInputControl.cs
- Update.cs
- InputScopeNameConverter.cs
- XmlILConstructAnalyzer.cs
- SmtpFailedRecipientException.cs
- MetabaseReader.cs
- Block.cs
- MembershipValidatePasswordEventArgs.cs
- MarginsConverter.cs
- MailSettingsSection.cs
- Model3DCollection.cs
- ProjectionCamera.cs
- SpellCheck.cs
- MarkerProperties.cs
- GlobalProxySelection.cs
- ChangeProcessor.cs
- DocumentApplicationDocumentViewer.cs
- RowTypePropertyElement.cs
- InvocationExpression.cs
- StylusPlugInCollection.cs
- PartManifestEntry.cs
- FillBehavior.cs
- SHA384.cs
- RemoteArgument.cs
- filewebresponse.cs
- CollectionBase.cs
- XmlJsonReader.cs
- XmlAnyElementAttribute.cs
- StdValidatorsAndConverters.cs
- WindowsListViewScroll.cs
- ResourceExpressionBuilder.cs
- SchemaObjectWriter.cs
- LabelEditEvent.cs
- RelationshipManager.cs
- recordstatefactory.cs
- assemblycache.cs
- TraceUtility.cs
- XmlProcessingInstruction.cs
- HybridDictionary.cs
- HttpValueCollection.cs
- DiagnosticsConfiguration.cs
- StorageInfo.cs
- TargetException.cs