Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / ImpersonationOption.cs / 1 / ImpersonationOption.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel
{
public enum ImpersonationOption
{
NotAllowed,
Allowed,
Required,
}
static class ImpersonationOptionHelper
{
public static bool IsDefined(ImpersonationOption option)
{
return (option == ImpersonationOption.NotAllowed ||
option == ImpersonationOption.Allowed ||
option == ImpersonationOption.Required);
}
internal static bool AllowedOrRequired(ImpersonationOption option)
{
return (option == ImpersonationOption.Allowed ||
option == ImpersonationOption.Required);
}
}
}
// 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
- ReachPrintTicketSerializerAsync.cs
- ObjectHelper.cs
- SmiConnection.cs
- MailDefinition.cs
- WorkflowApplicationCompletedEventArgs.cs
- ViewUtilities.cs
- Clock.cs
- WebPartUserCapability.cs
- ChtmlTextBoxAdapter.cs
- TraceInternal.cs
- SafeRegistryHandle.cs
- SQLRoleProvider.cs
- ManifestSignedXml.cs
- StringFunctions.cs
- UserControlParser.cs
- Pair.cs
- ConstraintConverter.cs
- SafeArchiveContext.cs
- XmlSchemaException.cs
- NodeInfo.cs
- TextInfo.cs
- PropertyGridEditorPart.cs
- UrlMappingCollection.cs
- SqlCacheDependencyDatabase.cs
- CompilationRelaxations.cs
- MarginsConverter.cs
- ComponentDispatcherThread.cs
- MailWebEventProvider.cs
- AttachmentCollection.cs
- XsltQilFactory.cs
- webproxy.cs
- SessionEndedEventArgs.cs
- DataPagerFieldItem.cs
- BinaryObjectInfo.cs
- ClientTarget.cs
- ConnectionProviderAttribute.cs
- httpstaticobjectscollection.cs
- KeyedPriorityQueue.cs
- DefaultParameterValueAttribute.cs
- PropertyHelper.cs
- RuleSettings.cs
- ServerValidateEventArgs.cs
- CapiNative.cs
- DataColumnMappingCollection.cs
- ACL.cs
- XmlBindingWorker.cs
- StorageEndPropertyMapping.cs
- DetailsViewDesigner.cs
- BlockUIContainer.cs
- DataGridViewCellLinkedList.cs
- ResourceManagerWrapper.cs
- ExeContext.cs
- ValidationErrorEventArgs.cs
- AttributeCollection.cs
- IncrementalHitTester.cs
- ReadWriteSpinLock.cs
- Metafile.cs
- StringReader.cs
- Point3DCollection.cs
- BaseResourcesBuildProvider.cs
- WebPartUserCapability.cs
- WmfPlaceableFileHeader.cs
- HashLookup.cs
- lengthconverter.cs
- ResourceType.cs
- HttpRuntimeSection.cs
- MetadataProperty.cs
- HttpServerUtilityBase.cs
- DoubleAnimationUsingPath.cs
- TemplateNameScope.cs
- NumberFormatInfo.cs
- DifferencingCollection.cs
- DataRecordInfo.cs
- MergeEnumerator.cs
- OAVariantLib.cs
- Identity.cs
- Camera.cs
- FloatUtil.cs
- OleDbPermission.cs
- TemplateControlCodeDomTreeGenerator.cs
- PrintDialogException.cs
- UnsafeNativeMethodsCLR.cs
- QueryHandler.cs
- ConditionCollection.cs
- ClientBuildManagerCallback.cs
- BufferBuilder.cs
- GeometryModel3D.cs
- DateTimeOffsetStorage.cs
- TimeoutHelper.cs
- translator.cs
- CategoryNameCollection.cs
- SafeCryptoHandles.cs
- ConcurrentQueue.cs
- BaseEntityWrapper.cs
- GeneralTransform2DTo3D.cs
- ConfigurationSchemaErrors.cs
- ContentHostHelper.cs
- SqlInternalConnectionTds.cs
- DocumentReference.cs
- TypeConverterAttribute.cs