Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SecurityKeyUsage.cs / 1 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FixedSOMPageConstructor.cs
- WebControlAdapter.cs
- IndexedString.cs
- UnlockInstanceCommand.cs
- QueryContinueDragEvent.cs
- TextTreeNode.cs
- figurelengthconverter.cs
- HwndSource.cs
- TransactionManager.cs
- ListControl.cs
- UdpReplyToBehavior.cs
- HighlightComponent.cs
- PropertyDescriptorCollection.cs
- ConfigPathUtility.cs
- DbDataRecord.cs
- DataGridViewCellLinkedList.cs
- SafeIUnknown.cs
- ViewUtilities.cs
- CompilerParameters.cs
- VisualStyleElement.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SchemaConstraints.cs
- TextSchema.cs
- DbSetClause.cs
- APCustomTypeDescriptor.cs
- Evaluator.cs
- XslTransform.cs
- IntSecurity.cs
- TableItemProviderWrapper.cs
- MasterPageParser.cs
- Freezable.cs
- EventHandlerList.cs
- ParentUndoUnit.cs
- FreeFormDragDropManager.cs
- DefaultDialogButtons.cs
- TargetControlTypeCache.cs
- AdapterDictionary.cs
- SerializableAttribute.cs
- DownloadProgressEventArgs.cs
- NetworkInformationPermission.cs
- WebPartMenuStyle.cs
- ErrorWebPart.cs
- ValidationContext.cs
- SamlAssertionKeyIdentifierClause.cs
- Coordinator.cs
- EmissiveMaterial.cs
- SoapIncludeAttribute.cs
- DragEvent.cs
- FixedPage.cs
- CancelEventArgs.cs
- CatalogPartCollection.cs
- ComponentConverter.cs
- Semaphore.cs
- Unit.cs
- OptimisticConcurrencyException.cs
- SerializationTrace.cs
- DataGridViewHitTestInfo.cs
- HtmlTableCell.cs
- XmlQueryCardinality.cs
- SortDescriptionCollection.cs
- ArraySortHelper.cs
- BasicViewGenerator.cs
- StorageMappingItemLoader.cs
- TrackBarRenderer.cs
- XmlReflectionImporter.cs
- ManifestSignatureInformation.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- StreamFormatter.cs
- TemplateField.cs
- Slider.cs
- ProfilePropertySettingsCollection.cs
- HierarchicalDataBoundControl.cs
- CapabilitiesRule.cs
- TextEndOfSegment.cs
- EdmComplexPropertyAttribute.cs
- OutputCacheSection.cs
- linebase.cs
- CalendarDay.cs
- WebPartEventArgs.cs
- Listen.cs
- Vector3DAnimation.cs
- DecimalAnimationBase.cs
- AsymmetricAlgorithm.cs
- NoneExcludedImageIndexConverter.cs
- MD5CryptoServiceProvider.cs
- WindowsFont.cs
- While.cs
- RegisteredExpandoAttribute.cs
- XmlIgnoreAttribute.cs
- SemaphoreFullException.cs
- SettingsAttributes.cs
- DataBoundControl.cs
- BamlMapTable.cs
- StylusButton.cs
- Int32AnimationBase.cs
- DataServiceCollectionOfT.cs
- SoapExtensionTypeElementCollection.cs
- ByteStorage.cs
- ReferenceService.cs
- BooleanConverter.cs