Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SecurityKeyType.cs / 1305376 / SecurityKeyType.cs
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------
namespace System.IdentityModel.Tokens
{
using System.ComponentModel;
using System.Diagnostics;
public enum SecurityKeyType
{
SymmetricKey,
AsymmetricKey,
BearerKey
}
static class SecurityKeyTypeHelper
{
internal static bool IsDefined(SecurityKeyType value)
{
return (value == SecurityKeyType.SymmetricKey
|| value == SecurityKeyType.AsymmetricKey
|| value == SecurityKeyType.BearerKey);
}
internal static void Validate(SecurityKeyType value)
{
if (!IsDefined(value))
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value,
typeof(SecurityKeyType)));
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SmiSettersStream.cs
- FrameworkContentElement.cs
- Vector3DAnimationBase.cs
- NameValueFileSectionHandler.cs
- FreezableOperations.cs
- ObjectStateManagerMetadata.cs
- X509Certificate2.cs
- UserCancellationException.cs
- ConfigurationStrings.cs
- AccessedThroughPropertyAttribute.cs
- ActivityTrace.cs
- SingleAnimation.cs
- VectorValueSerializer.cs
- TreeViewCancelEvent.cs
- BasePropertyDescriptor.cs
- XmlILAnnotation.cs
- TemplateParser.cs
- newitemfactory.cs
- Rect.cs
- ManagementOperationWatcher.cs
- UnsettableComboBox.cs
- GridViewHeaderRowPresenter.cs
- LinkedResource.cs
- XPathSelectionIterator.cs
- StrokeNodeData.cs
- InternalCache.cs
- SID.cs
- SafeNativeMethods.cs
- tooltip.cs
- RichTextBoxContextMenu.cs
- BCryptNative.cs
- codemethodreferenceexpression.cs
- MSAANativeProvider.cs
- TreeBuilderBamlTranslator.cs
- QueryContinueDragEvent.cs
- MessageFilter.cs
- Encoder.cs
- SiteOfOriginPart.cs
- hwndwrapper.cs
- StateDesigner.TransitionInfo.cs
- TextTreeText.cs
- WebColorConverter.cs
- DependencyPropertyValueSerializer.cs
- RegexNode.cs
- XslTransform.cs
- TableColumnCollectionInternal.cs
- LineServicesRun.cs
- ScopeCompiler.cs
- AssociatedControlConverter.cs
- AtomContentProperty.cs
- FileNotFoundException.cs
- XamlInterfaces.cs
- XmlC14NWriter.cs
- Workspace.cs
- EventToken.cs
- GCHandleCookieTable.cs
- AttachmentCollection.cs
- ValidationUtility.cs
- HtmlToClrEventProxy.cs
- GradientBrush.cs
- _ShellExpression.cs
- Size.cs
- HandlerBase.cs
- WebGetAttribute.cs
- StatusBarPanelClickEvent.cs
- PackWebRequestFactory.cs
- InstanceData.cs
- DataGridViewCellCollection.cs
- DropShadowBitmapEffect.cs
- WorkflowOperationFault.cs
- RowVisual.cs
- ViewSimplifier.cs
- UniqueEventHelper.cs
- WebServicesInteroperability.cs
- NonSerializedAttribute.cs
- StrokeCollection.cs
- NetTcpBinding.cs
- ChannelServices.cs
- DesignerDeviceConfig.cs
- XPathParser.cs
- ProvideValueServiceProvider.cs
- webbrowsersite.cs
- HeaderUtility.cs
- QueryInterceptorAttribute.cs
- TextFindEngine.cs
- ActivationService.cs
- GeometryGroup.cs
- AutomationAttributeInfo.cs
- FileDialogCustomPlaces.cs
- KeyMatchBuilder.cs
- RuntimeArgumentHandle.cs
- UITypeEditor.cs
- Win32.cs
- MessageLogger.cs
- SafeRegistryHandle.cs
- ConditionCollection.cs
- PopupRoot.cs
- ZipFileInfo.cs
- XmlParserContext.cs
- WeakHashtable.cs