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
- CodePrimitiveExpression.cs
- Root.cs
- RepeaterItemEventArgs.cs
- IpcClientManager.cs
- TemplateColumn.cs
- PkcsUtils.cs
- TextAdaptor.cs
- ChildrenQuery.cs
- ComponentConverter.cs
- Source.cs
- TypeBinaryExpression.cs
- Screen.cs
- SaveFileDialog.cs
- WebPartConnectionsConnectVerb.cs
- WorkItem.cs
- HasCopySemanticsAttribute.cs
- RemotingClientProxy.cs
- UnitControl.cs
- ProviderCollection.cs
- TagMapCollection.cs
- KnownIds.cs
- DataGridViewRowCancelEventArgs.cs
- WizardPanel.cs
- EmptyControlCollection.cs
- ConfigXmlText.cs
- RenderDataDrawingContext.cs
- SelectionWordBreaker.cs
- ComEventsMethod.cs
- StringWriter.cs
- ProcessModelInfo.cs
- SqlProviderServices.cs
- DBDataPermissionAttribute.cs
- CommandID.cs
- TextContainerHelper.cs
- AssociationSet.cs
- RuntimeConfig.cs
- WindowsListViewItemCheckBox.cs
- ConfigurationFileMap.cs
- GridViewColumnCollectionChangedEventArgs.cs
- WindowsEditBox.cs
- Verify.cs
- Speller.cs
- Base64Stream.cs
- Listbox.cs
- AggregateNode.cs
- PresentationAppDomainManager.cs
- UniqueEventHelper.cs
- HtmlButton.cs
- ImageCodecInfoPrivate.cs
- VectorAnimationBase.cs
- InputBinding.cs
- RepeatEnumerable.cs
- FontUnit.cs
- DynamicPropertyReader.cs
- IgnoreSectionHandler.cs
- ImmutableAssemblyCacheEntry.cs
- EncryptedKeyHashIdentifierClause.cs
- Decimal.cs
- DataErrorValidationRule.cs
- Signature.cs
- HttpResponseWrapper.cs
- SessionEndingCancelEventArgs.cs
- _NestedSingleAsyncResult.cs
- SecurityState.cs
- Models.cs
- ArrayExtension.cs
- Camera.cs
- EncryptedReference.cs
- HatchBrush.cs
- TableSectionStyle.cs
- SequenceNumber.cs
- ExpressionBinding.cs
- HttpsHostedTransportConfiguration.cs
- ServiceEndpointCollection.cs
- CodeArrayIndexerExpression.cs
- ImportStoreException.cs
- BasicExpandProvider.cs
- HttpAsyncResult.cs
- ApplicationTrust.cs
- InstancePersistenceCommandException.cs
- HtmlTableRow.cs
- _SslStream.cs
- ControlAdapter.cs
- PlainXmlWriter.cs
- TextPointer.cs
- IssuedTokenClientBehaviorsElementCollection.cs
- TickBar.cs
- SafeNativeMethods.cs
- SystemIcmpV4Statistics.cs
- EmbeddedMailObjectCollectionEditor.cs
- WindowsBrush.cs
- Timer.cs
- CompilerResults.cs
- HtmlTable.cs
- MinMaxParagraphWidth.cs
- CLRBindingWorker.cs
- ReferenceConverter.cs
- Frame.cs
- WebMessageFormatHelper.cs
- Activity.cs