Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RtfFormatStack.cs
- WebUtil.cs
- MetaType.cs
- ControlBuilder.cs
- ThicknessConverter.cs
- CatalogPartCollection.cs
- JsonServiceDocumentSerializer.cs
- DropSource.cs
- ZipIOExtraFieldPaddingElement.cs
- WindowsGraphicsWrapper.cs
- ListView.cs
- SiteMapSection.cs
- NullableLongSumAggregationOperator.cs
- DataGridTableStyleMappingNameEditor.cs
- DataListItemEventArgs.cs
- Selector.cs
- SemanticResultKey.cs
- AttributeXamlType.cs
- MediaSystem.cs
- WebPartZone.cs
- ISAPIApplicationHost.cs
- _NestedMultipleAsyncResult.cs
- DirectoryNotFoundException.cs
- PointAnimationUsingKeyFrames.cs
- DataGridLength.cs
- RuntimeConfigurationRecord.cs
- ProjectedSlot.cs
- LinqDataSourceContextEventArgs.cs
- CacheMode.cs
- VectorCollection.cs
- UpDownEvent.cs
- ResourceReader.cs
- errorpatternmatcher.cs
- Publisher.cs
- RoleGroupCollectionEditor.cs
- BehaviorEditorPart.cs
- DebugManager.cs
- ClientTargetSection.cs
- DeleteIndexBinder.cs
- ScrollPattern.cs
- MsmqIntegrationBinding.cs
- XmlCustomFormatter.cs
- RegexBoyerMoore.cs
- DependencyPropertyConverter.cs
- InternalDispatchObject.cs
- ComponentEditorPage.cs
- FixedNode.cs
- SerializationObjectManager.cs
- GridViewCommandEventArgs.cs
- ProfileEventArgs.cs
- PixelFormat.cs
- IItemProperties.cs
- XPathNodeHelper.cs
- TimeStampChecker.cs
- HScrollProperties.cs
- ComponentCollection.cs
- TraceUtility.cs
- DateTimeFormatInfo.cs
- TemplateKey.cs
- ClipboardProcessor.cs
- DataGridViewRowCancelEventArgs.cs
- GridViewSortEventArgs.cs
- HttpModuleCollection.cs
- CapabilitiesPattern.cs
- ObjectDataSourceDisposingEventArgs.cs
- DependencyPropertyKind.cs
- Comparer.cs
- CustomBindingElement.cs
- Rights.cs
- BamlLocalizabilityResolver.cs
- IdnElement.cs
- TimeoutStream.cs
- PageClientProxyGenerator.cs
- StylusPointPropertyUnit.cs
- SendKeys.cs
- UnsafeNativeMethods.cs
- HtmlTableRow.cs
- LogLogRecord.cs
- Lasso.cs
- ValidationService.cs
- RefreshEventArgs.cs
- System.Data_BID.cs
- ExpressionNode.cs
- IIS7WorkerRequest.cs
- WindowsImpersonationContext.cs
- MultiPageTextView.cs
- SqlErrorCollection.cs
- QueryResponse.cs
- GroupByQueryOperator.cs
- ContentElement.cs
- _OverlappedAsyncResult.cs
- SiteMapNodeCollection.cs
- NullReferenceException.cs
- HitTestParameters.cs
- ValidationPropertyAttribute.cs
- LoginUtil.cs
- TextRange.cs
- baseaxisquery.cs
- DataGridHeaderBorder.cs
- ParallelTimeline.cs