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
- SiteMapDataSourceDesigner.cs
- PointCollectionConverter.cs
- PropertyMap.cs
- StylusPointPropertyUnit.cs
- Stacktrace.cs
- ProjectionCamera.cs
- ManifestBasedResourceGroveler.cs
- SelfIssuedSamlTokenFactory.cs
- Cursors.cs
- NotificationContext.cs
- httpserverutility.cs
- SingleResultAttribute.cs
- XsdBuildProvider.cs
- DbInsertCommandTree.cs
- WCFServiceClientProxyGenerator.cs
- StructuredCompositeActivityDesigner.cs
- ActivatedMessageQueue.cs
- UInt32.cs
- ObjectDataSourceDisposingEventArgs.cs
- BaseValidator.cs
- SQLBinaryStorage.cs
- FactoryGenerator.cs
- RouteItem.cs
- OutputCacheModule.cs
- HostExecutionContextManager.cs
- AssociationEndMember.cs
- OleDbParameter.cs
- RecognizedPhrase.cs
- Identifier.cs
- DataMemberAttribute.cs
- SizeLimitedCache.cs
- FixedTextView.cs
- EmptyReadOnlyDictionaryInternal.cs
- DataGridPageChangedEventArgs.cs
- PathGradientBrush.cs
- TextBounds.cs
- _FixedSizeReader.cs
- StickyNoteHelper.cs
- ImageKeyConverter.cs
- WebContext.cs
- VirtualPathProvider.cs
- EventHandlersStore.cs
- Menu.cs
- HttpWriter.cs
- AbsoluteQuery.cs
- DesignerTransactionCloseEvent.cs
- LogicalCallContext.cs
- NameValueFileSectionHandler.cs
- GetRecipientListRequest.cs
- UndoManager.cs
- DbProviderManifest.cs
- PropertyPathWorker.cs
- Int16Converter.cs
- WebServiceData.cs
- ColumnHeaderConverter.cs
- DelayedRegex.cs
- FormView.cs
- MetadataItemEmitter.cs
- MsmqAppDomainProtocolHandler.cs
- XmlSchemaComplexContentExtension.cs
- TypeInitializationException.cs
- TraceLog.cs
- StringOutput.cs
- BookmarkOptionsHelper.cs
- NumericUpDown.cs
- UIntPtr.cs
- XmlObjectSerializer.cs
- HttpProfileGroupBase.cs
- BitmapCodecInfoInternal.cs
- DataGridCaption.cs
- SchemaMapping.cs
- MimeTextImporter.cs
- ISAPIRuntime.cs
- BitmapEffect.cs
- InfoCardTrace.cs
- OutOfMemoryException.cs
- TextParagraph.cs
- GACIdentityPermission.cs
- DefaultPerformanceCounters.cs
- MonitorWrapper.cs
- StylusShape.cs
- SettingsPropertyValue.cs
- SessionParameter.cs
- FontFamily.cs
- RuntimeConfigurationRecord.cs
- EditingCommands.cs
- BinHexEncoder.cs
- ArraySubsetEnumerator.cs
- DataColumnChangeEvent.cs
- DBAsyncResult.cs
- EraserBehavior.cs
- WebPartsPersonalizationAuthorization.cs
- Decimal.cs
- DoubleLinkList.cs
- ProviderConnectionPointCollection.cs
- CacheManager.cs
- MachineKeyConverter.cs
- InstallerTypeAttribute.cs
- metadatamappinghashervisitor.cs
- ExpressionBinding.cs