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
- AttachedPropertyInfo.cs
- PrimitiveSchema.cs
- EffectiveValueEntry.cs
- QueryReaderSettings.cs
- SingleObjectCollection.cs
- ObjRef.cs
- Odbc32.cs
- ConfigurationStrings.cs
- CacheMemory.cs
- TargetParameterCountException.cs
- InstanceHandleConflictException.cs
- CornerRadius.cs
- RSAPKCS1KeyExchangeFormatter.cs
- PenCursorManager.cs
- XmlNamespaceMapping.cs
- ReadOnlyCollection.cs
- WindowsTitleBar.cs
- ObjectPersistData.cs
- LinqDataSourceUpdateEventArgs.cs
- TableAutomationPeer.cs
- StringUtil.cs
- LogicalExpr.cs
- VirtualPathProvider.cs
- SelectedDatesCollection.cs
- XamlReaderHelper.cs
- TableCellCollection.cs
- WinFormsSpinner.cs
- EmissiveMaterial.cs
- DefaultDiscoveryService.cs
- CollectionsUtil.cs
- MembershipUser.cs
- Button.cs
- CellNormalizer.cs
- LinearGradientBrush.cs
- TypedDataSetSchemaImporterExtension.cs
- SqlInfoMessageEvent.cs
- ReachVisualSerializer.cs
- CodeDirectoryCompiler.cs
- ReachPrintTicketSerializerAsync.cs
- SqlCommandSet.cs
- ProcessHostMapPath.cs
- XamlWrappingReader.cs
- PipeStream.cs
- ConditionalAttribute.cs
- StringInfo.cs
- InvalidPrinterException.cs
- SynchronizedDispatch.cs
- SoapSchemaImporter.cs
- Lasso.cs
- SQLInt16.cs
- AtomMaterializerLog.cs
- TaskFormBase.cs
- RadioButtonAutomationPeer.cs
- WSSecurityTokenSerializer.cs
- WindowsSlider.cs
- ResXDataNode.cs
- LineGeometry.cs
- UniqueContractNameValidationBehavior.cs
- OdbcConnectionHandle.cs
- RuleInfoComparer.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ServiceRouteHandler.cs
- EpmSourcePathSegment.cs
- XmlSchemaImporter.cs
- ThrowHelper.cs
- MaterializeFromAtom.cs
- ViewEventArgs.cs
- ComponentDispatcher.cs
- ComponentCollection.cs
- Int32Animation.cs
- BulletChrome.cs
- TargetInvocationException.cs
- FieldTemplateFactory.cs
- SelectionItemPattern.cs
- ITextView.cs
- TextTreeTextNode.cs
- DataObjectSettingDataEventArgs.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- EdmType.cs
- BaseCollection.cs
- SchemaAttDef.cs
- Frame.cs
- VirtualizedCellInfoCollection.cs
- DrawItemEvent.cs
- ValidatorCollection.cs
- XmlSubtreeReader.cs
- ToolStripMenuItemDesigner.cs
- LateBoundBitmapDecoder.cs
- ImageAutomationPeer.cs
- MatrixTransform3D.cs
- ByteStack.cs
- DrawingGroupDrawingContext.cs
- IgnoreFileBuildProvider.cs
- fixedPageContentExtractor.cs
- TextTreeTextElementNode.cs
- SafeLibraryHandle.cs
- OleAutBinder.cs
- FamilyTypeface.cs
- FormsAuthenticationConfiguration.cs
- ElasticEase.cs