Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SecurityKeyUsage.cs / 1305376 / SecurityKeyUsage.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Tokens { using System.ComponentModel; using System.Diagnostics; public enum SecurityKeyUsage { Exchange, Signature } static class SecurityKeyUsageHelper { internal static bool IsDefined(SecurityKeyUsage value) { return (value == SecurityKeyUsage.Exchange || value == SecurityKeyUsage.Signature); } internal static void Validate(SecurityKeyUsage value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(SecurityKeyUsage))); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Tokens { using System.ComponentModel; using System.Diagnostics; public enum SecurityKeyUsage { Exchange, Signature } static class SecurityKeyUsageHelper { internal static bool IsDefined(SecurityKeyUsage value) { return (value == SecurityKeyUsage.Exchange || value == SecurityKeyUsage.Signature); } internal static void Validate(SecurityKeyUsage value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(SecurityKeyUsage))); } } } } // 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
- ComponentEditorPage.cs
- XNodeNavigator.cs
- ExtensibleClassFactory.cs
- ManagementOptions.cs
- DoubleCollectionConverter.cs
- AdornerLayer.cs
- MessageProtectionOrder.cs
- MenuItemAutomationPeer.cs
- Listbox.cs
- GlobalItem.cs
- RuleCache.cs
- CreateUserErrorEventArgs.cs
- MethodAccessException.cs
- HighlightComponent.cs
- Models.cs
- ActivityValidationServices.cs
- SqlDataSourceWizardForm.cs
- PauseStoryboard.cs
- TableLayoutPanelCellPosition.cs
- shaperfactoryquerycachekey.cs
- GeometryModel3D.cs
- Int16Converter.cs
- TypeResolvingOptions.cs
- AppearanceEditorPart.cs
- DataExpression.cs
- XmlUTF8TextReader.cs
- WebConvert.cs
- OleDbErrorCollection.cs
- UIElement3D.cs
- ControlUtil.cs
- ServiceOperationWrapper.cs
- PointValueSerializer.cs
- XmlILTrace.cs
- WebEvents.cs
- SimpleMailWebEventProvider.cs
- ScriptManager.cs
- DataGridViewRowStateChangedEventArgs.cs
- Win32Exception.cs
- TrustManager.cs
- StringArrayConverter.cs
- SoapObjectInfo.cs
- GridView.cs
- WebBrowserNavigatingEventHandler.cs
- WindowsListViewSubItem.cs
- Graphics.cs
- DataGridViewCellCancelEventArgs.cs
- Stack.cs
- TableAutomationPeer.cs
- BitArray.cs
- PathSegmentCollection.cs
- SecurityRuntime.cs
- SoapSchemaMember.cs
- XamlToRtfWriter.cs
- DBNull.cs
- SubpageParaClient.cs
- MD5.cs
- FrameworkContentElementAutomationPeer.cs
- SHA256.cs
- DrawingDrawingContext.cs
- DataGridViewCellEventArgs.cs
- SafeNativeMethodsMilCoreApi.cs
- ImageInfo.cs
- FrameworkElementFactoryMarkupObject.cs
- dsa.cs
- DbDataSourceEnumerator.cs
- cache.cs
- SqlDataSource.cs
- SynchronizationScope.cs
- NativeMethodsOther.cs
- AnimationClockResource.cs
- TdsParserSessionPool.cs
- PartManifestEntry.cs
- Control.cs
- XmlLanguage.cs
- TextModifier.cs
- BitmapEffectvisualstate.cs
- MainMenu.cs
- GeneralTransformGroup.cs
- GeometryCombineModeValidation.cs
- VolatileResourceManager.cs
- XpsManager.cs
- StateItem.cs
- QueryCacheManager.cs
- AQNBuilder.cs
- Component.cs
- NGCSerializationManager.cs
- DateBoldEvent.cs
- BulletedListEventArgs.cs
- CodeTypeParameter.cs
- X509Extension.cs
- DNS.cs
- InheritanceAttribute.cs
- Stopwatch.cs
- ClockController.cs
- XmlHelper.cs
- HttpServerVarsCollection.cs
- AspCompat.cs
- SmtpNegotiateAuthenticationModule.cs
- TraceContext.cs
- controlskin.cs