Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SecurityKeyType.cs / 1305376 / SecurityKeyType.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.IdentityModel.Tokens { using System.ComponentModel; using System.Diagnostics; public enum SecurityKeyType { SymmetricKey, AsymmetricKey, BearerKey } static class SecurityKeyTypeHelper { internal static bool IsDefined(SecurityKeyType value) { return (value == SecurityKeyType.SymmetricKey || value == SecurityKeyType.AsymmetricKey || value == SecurityKeyType.BearerKey); } internal static void Validate(SecurityKeyType value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(SecurityKeyType))); } } } } // 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 SecurityKeyType { SymmetricKey, AsymmetricKey, BearerKey } static class SecurityKeyTypeHelper { internal static bool IsDefined(SecurityKeyType value) { return (value == SecurityKeyType.SymmetricKey || value == SecurityKeyType.AsymmetricKey || value == SecurityKeyType.BearerKey); } internal static void Validate(SecurityKeyType value) { if (!IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(SecurityKeyType))); } } } } // 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
- PageThemeCodeDomTreeGenerator.cs
- AliasedSlot.cs
- DelegatedStream.cs
- LostFocusEventManager.cs
- ItemCollection.cs
- ParameterCollection.cs
- Header.cs
- DbgUtil.cs
- XmlSchemaGroup.cs
- WindowsGraphics2.cs
- WebServiceFaultDesigner.cs
- Item.cs
- DropShadowBitmapEffect.cs
- CodeCatchClause.cs
- DateRangeEvent.cs
- HandledEventArgs.cs
- FixedSOMPageElement.cs
- Int64Storage.cs
- ProxyGenerator.cs
- TimersDescriptionAttribute.cs
- IImplicitResourceProvider.cs
- PenThreadWorker.cs
- XmlSchemaValidator.cs
- TabControlCancelEvent.cs
- DbCommandDefinition.cs
- SecurityContext.cs
- AssemblyFilter.cs
- ConnectionManagementSection.cs
- BufferAllocator.cs
- CapabilitiesPattern.cs
- ConditionalDesigner.cs
- MessageLoggingFilterTraceRecord.cs
- TrackingCondition.cs
- Graph.cs
- EventData.cs
- ValuePattern.cs
- ParenthesizePropertyNameAttribute.cs
- InputEventArgs.cs
- IPipelineRuntime.cs
- Set.cs
- DrawingImage.cs
- RIPEMD160.cs
- DateTimeStorage.cs
- ListenerElementsCollection.cs
- SR.cs
- RegisteredDisposeScript.cs
- RemotingException.cs
- UIntPtr.cs
- OperationAbortedException.cs
- HttpServerVarsCollection.cs
- AssemblyContextControlItem.cs
- BufferedGraphics.cs
- TextParagraphView.cs
- DesignerGenericWebPart.cs
- Options.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DataColumnCollection.cs
- PrintPreviewControl.cs
- UIElementPropertyUndoUnit.cs
- StrongTypingException.cs
- DataGridToolTip.cs
- InputDevice.cs
- InputManager.cs
- TemplateBuilder.cs
- ComEventsHelper.cs
- ExceptionDetail.cs
- FormsAuthenticationTicket.cs
- DateRangeEvent.cs
- OleDbConnectionFactory.cs
- DependencyObjectValidator.cs
- Icon.cs
- MessageHeaderDescriptionCollection.cs
- ZipIOFileItemStream.cs
- SemanticTag.cs
- ValidatedControlConverter.cs
- StreamResourceInfo.cs
- cookiecollection.cs
- LineGeometry.cs
- TypedReference.cs
- ToolStripSplitStackLayout.cs
- DynamicUpdateCommand.cs
- RegexTree.cs
- PersistenceParticipant.cs
- FontNamesConverter.cs
- PowerModeChangedEventArgs.cs
- AttachedPropertyMethodSelector.cs
- ModelUIElement3D.cs
- EntityObject.cs
- LocalBuilder.cs
- CollectionViewGroup.cs
- StaticDataManager.cs
- DecoderReplacementFallback.cs
- GridViewColumnHeaderAutomationPeer.cs
- CommandDesigner.cs
- TdsParserHelperClasses.cs
- CodeArrayIndexerExpression.cs
- ConnectionString.cs
- smtpconnection.cs
- FragmentNavigationEventArgs.cs
- ResolveNextArgumentWorkItem.cs