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
- TdsParserSafeHandles.cs
- DataBoundControl.cs
- AutoGeneratedFieldProperties.cs
- UriSection.cs
- DateBoldEvent.cs
- Function.cs
- DiscreteKeyFrames.cs
- SqlXmlStorage.cs
- ConfigurationStrings.cs
- InvalidComObjectException.cs
- DrawTreeNodeEventArgs.cs
- SmiEventStream.cs
- SafeEventLogReadHandle.cs
- ByteConverter.cs
- HttpValueCollection.cs
- Quaternion.cs
- NamedPipeChannelListener.cs
- Cursor.cs
- DataGridViewRowCollection.cs
- ImmutableCollection.cs
- LabelAutomationPeer.cs
- ExpressionConverter.cs
- DesignerForm.cs
- ScriptHandlerFactory.cs
- securestring.cs
- MetadataException.cs
- HexParser.cs
- ToolStripCodeDomSerializer.cs
- ExecutedRoutedEventArgs.cs
- HtmlShimManager.cs
- Glyph.cs
- Inline.cs
- MetaModel.cs
- Console.cs
- Int16KeyFrameCollection.cs
- SelectorItemAutomationPeer.cs
- FormClosingEvent.cs
- DataObjectFieldAttribute.cs
- WebPartEditorCancelVerb.cs
- PageParser.cs
- DataListCommandEventArgs.cs
- SpellerStatusTable.cs
- AmbientValueAttribute.cs
- OracleLob.cs
- LongValidatorAttribute.cs
- PathFigureCollection.cs
- SharedHttpsTransportManager.cs
- MailAddress.cs
- CaseInsensitiveOrdinalStringComparer.cs
- QueryProcessor.cs
- IgnoreSection.cs
- WebContext.cs
- BasicDesignerLoader.cs
- XmlObjectSerializerReadContextComplex.cs
- COM2FontConverter.cs
- UserPreferenceChangedEventArgs.cs
- ManifestResourceInfo.cs
- XmlSchemaObject.cs
- EnterpriseServicesHelper.cs
- BorderGapMaskConverter.cs
- PointLight.cs
- XsltLibrary.cs
- PreparingEnlistment.cs
- SHA384Managed.cs
- NullRuntimeConfig.cs
- DrawListViewItemEventArgs.cs
- BlockCollection.cs
- Pair.cs
- TogglePattern.cs
- BufferModeSettings.cs
- MulticastNotSupportedException.cs
- XmlName.cs
- TextServicesCompartmentEventSink.cs
- ValueQuery.cs
- SeverityFilter.cs
- FileLevelControlBuilderAttribute.cs
- DSACryptoServiceProvider.cs
- SharedDp.cs
- DataPagerField.cs
- MILUtilities.cs
- HtmlControl.cs
- CommentAction.cs
- SelectionProviderWrapper.cs
- ThreadSafeList.cs
- DependencyObjectPropertyDescriptor.cs
- Message.cs
- ClientSettingsSection.cs
- CompositeKey.cs
- OleDbConnectionFactory.cs
- TypefaceMetricsCache.cs
- XmlSortKeyAccumulator.cs
- TraversalRequest.cs
- TextContainerHelper.cs
- CounterSetInstanceCounterDataSet.cs
- SQLResource.cs
- BuilderInfo.cs
- Control.cs
- SQLInt16Storage.cs
- SessionPageStateSection.cs
- HitTestWithGeometryDrawingContextWalker.cs