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
- NotImplementedException.cs
- SHA384CryptoServiceProvider.cs
- IntPtr.cs
- TextDecorationUnitValidation.cs
- ScriptingProfileServiceSection.cs
- DrawingCollection.cs
- RTTrackingProfile.cs
- ErrorFormatter.cs
- UserValidatedEventArgs.cs
- StringResourceManager.cs
- FormatException.cs
- WindowsSysHeader.cs
- Exceptions.cs
- ToolStripSettings.cs
- CharStorage.cs
- EntryWrittenEventArgs.cs
- XpsDocument.cs
- ComponentEvent.cs
- processwaithandle.cs
- XmlSchemaComplexContentRestriction.cs
- DataError.cs
- EntitySetBase.cs
- ByteFacetDescriptionElement.cs
- DbProviderManifest.cs
- Int64.cs
- SelectionGlyph.cs
- GuidConverter.cs
- ObjectAnimationBase.cs
- TransformedBitmap.cs
- GenericEnumerator.cs
- GraphicsPath.cs
- RadioButtonRenderer.cs
- ProtocolsInstallComponent.cs
- DesignerOptionService.cs
- IERequestCache.cs
- HtmlInputFile.cs
- ConfigurationValidatorAttribute.cs
- CurrencyManager.cs
- XmlSchemaCollection.cs
- ControlPaint.cs
- DbConnectionPool.cs
- StatusBarPanelClickEvent.cs
- WhitespaceSignificantCollectionAttribute.cs
- Char.cs
- GeometryModel3D.cs
- SizeKeyFrameCollection.cs
- CompositeDesignerAccessibleObject.cs
- printdlgexmarshaler.cs
- StructuralCache.cs
- Function.cs
- ProgressiveCrcCalculatingStream.cs
- ListViewItemMouseHoverEvent.cs
- XmlQueryType.cs
- ClientFormsIdentity.cs
- HtmlTableRowCollection.cs
- Visual3DCollection.cs
- HtmlInputHidden.cs
- FileDialogCustomPlace.cs
- HyperLink.cs
- Memoizer.cs
- ConfigurationLockCollection.cs
- PriorityChain.cs
- LambdaCompiler.ControlFlow.cs
- XmlIterators.cs
- XmlReturnWriter.cs
- GridEntryCollection.cs
- NumberSubstitution.cs
- LoadMessageLogger.cs
- PrivacyNoticeElement.cs
- ExceptionUtil.cs
- XmlWrappingReader.cs
- PaintValueEventArgs.cs
- PenCursorManager.cs
- ItemCollectionEditor.cs
- SafeHandles.cs
- PersistChildrenAttribute.cs
- BuildProvidersCompiler.cs
- DataGridTable.cs
- SyndicationSerializer.cs
- FixedTextBuilder.cs
- AssemblyFilter.cs
- WrappingXamlSchemaContext.cs
- httpapplicationstate.cs
- FrugalList.cs
- IgnoreFileBuildProvider.cs
- ColorPalette.cs
- MessagingDescriptionAttribute.cs
- SqlUserDefinedAggregateAttribute.cs
- MissingSatelliteAssemblyException.cs
- ManagedWndProcTracker.cs
- RegistryKey.cs
- HelpKeywordAttribute.cs
- RequestCacheManager.cs
- String.cs
- HwndSourceParameters.cs
- MultipleCopiesCollection.cs
- LayoutEngine.cs
- Attributes.cs
- FormClosedEvent.cs
- ProxyHwnd.cs