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
- SupportingTokenParameters.cs
- ServiceOperationHelpers.cs
- CrossSiteScriptingValidation.cs
- BamlTreeMap.cs
- ObjectDataSourceMethodEventArgs.cs
- _ProxyRegBlob.cs
- BindingContext.cs
- ClickablePoint.cs
- TreeNodeCollection.cs
- BodyGlyph.cs
- TrackBarRenderer.cs
- RoleManagerEventArgs.cs
- PartialCachingControl.cs
- PropertyBuilder.cs
- Substitution.cs
- ForeignKeyConstraint.cs
- HttpHandlersSection.cs
- ComplusTypeValidator.cs
- Matrix3DValueSerializer.cs
- XmlSchemaAttributeGroupRef.cs
- coordinator.cs
- XDRSchema.cs
- XmlEncodedRawTextWriter.cs
- Mapping.cs
- CustomServiceCredentials.cs
- DocumentOrderQuery.cs
- MediaContext.cs
- SqlNode.cs
- PlatformCulture.cs
- ViewBox.cs
- WebRequestModuleElement.cs
- TabletCollection.cs
- ASCIIEncoding.cs
- CanonicalizationDriver.cs
- Scene3D.cs
- ThreadAbortException.cs
- DataGridViewCellStyleChangedEventArgs.cs
- FixedDocument.cs
- StrokeNodeOperations2.cs
- GAC.cs
- DrawingGroup.cs
- ProxyFragment.cs
- HttpProfileBase.cs
- PassportPrincipal.cs
- ItemCheckedEvent.cs
- SqlRowUpdatingEvent.cs
- AspNetHostingPermission.cs
- RegexCompilationInfo.cs
- objectresult_tresulttype.cs
- SelectionChangedEventArgs.cs
- ConsoleTraceListener.cs
- Size3D.cs
- PolicyUnit.cs
- SimpleMailWebEventProvider.cs
- OutputCacheModule.cs
- Operator.cs
- SystemColors.cs
- DrawingCollection.cs
- ComplexObject.cs
- DllNotFoundException.cs
- Application.cs
- BasicHttpBindingElement.cs
- SelectionChangedEventArgs.cs
- ViewCellSlot.cs
- StringDictionaryWithComparer.cs
- HttpRuntime.cs
- BamlWriter.cs
- SQLMembershipProvider.cs
- Point3DConverter.cs
- RuleSettingsCollection.cs
- SponsorHelper.cs
- ShortcutKeysEditor.cs
- SiteMapSection.cs
- DaylightTime.cs
- DbDataReader.cs
- DbException.cs
- ElementUtil.cs
- Pen.cs
- WindowInteractionStateTracker.cs
- TypeConverter.cs
- ClientSponsor.cs
- PtsCache.cs
- Stroke2.cs
- ParameterCollection.cs
- HeaderElement.cs
- XomlCompilerHelpers.cs
- FormClosedEvent.cs
- WebServiceParameterData.cs
- Array.cs
- User.cs
- PropertyStore.cs
- LocatorBase.cs
- UiaCoreApi.cs
- CorrelationInitializer.cs
- StrongName.cs
- SessionParameter.cs
- SafeRightsManagementEnvironmentHandle.cs
- ResourcePart.cs
- SystemIPInterfaceStatistics.cs
- GenericWebPart.cs