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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridItem.cs
- ReflectionHelper.cs
- ToolBarButton.cs
- WebPartConnectionsEventArgs.cs
- WebBrowserProgressChangedEventHandler.cs
- ZipIOLocalFileHeader.cs
- WindowsScroll.cs
- ClientProxyGenerator.cs
- DataGridViewRowsRemovedEventArgs.cs
- Page.cs
- SecurityHeaderElementInferenceEngine.cs
- FixedSOMTextRun.cs
- DurableErrorHandler.cs
- QuaternionRotation3D.cs
- ManipulationDelta.cs
- GenericAuthenticationEventArgs.cs
- ObjectDataProvider.cs
- ObjectDataSourceEventArgs.cs
- CodeNamespace.cs
- SrgsRulesCollection.cs
- KeySpline.cs
- Matrix.cs
- Int32AnimationUsingKeyFrames.cs
- BufferModesCollection.cs
- StylusPointPropertyInfoDefaults.cs
- Transaction.cs
- ScrollBarRenderer.cs
- CommandPlan.cs
- DesignerTransaction.cs
- TriggerActionCollection.cs
- HttpRawResponse.cs
- AttachedProperty.cs
- ToolboxComponentsCreatingEventArgs.cs
- DataObjectSettingDataEventArgs.cs
- ChtmlTextWriter.cs
- RegionIterator.cs
- TextEvent.cs
- TypedReference.cs
- WindowsRegion.cs
- HttpServerVarsCollection.cs
- Timer.cs
- UniformGrid.cs
- XmlNamespaceDeclarationsAttribute.cs
- ContainerParagraph.cs
- TitleStyle.cs
- categoryentry.cs
- SrgsItemList.cs
- SQLSingle.cs
- SessionPageStateSection.cs
- SQLByte.cs
- XmlSchemaAppInfo.cs
- wmiprovider.cs
- DoubleAnimationUsingPath.cs
- IImplicitResourceProvider.cs
- xmlformatgeneratorstatics.cs
- ColorIndependentAnimationStorage.cs
- BuildManagerHost.cs
- ValidationRuleCollection.cs
- SqlNamer.cs
- StoreItemCollection.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- GridErrorDlg.cs
- URLIdentityPermission.cs
- FamilyCollection.cs
- WindowsFormsLinkLabel.cs
- ObjectStateFormatter.cs
- DataGridViewCellParsingEventArgs.cs
- TableRow.cs
- AccessKeyManager.cs
- ValidationSettings.cs
- Preprocessor.cs
- SoapAttributes.cs
- PropertyOverridesDialog.cs
- ConnectionsZoneDesigner.cs
- WpfWebRequestHelper.cs
- ProfessionalColorTable.cs
- TextRenderer.cs
- Operand.cs
- SubclassTypeValidator.cs
- XPathExpr.cs
- SymbolTable.cs
- SynchronizedDispatch.cs
- sqlmetadatafactory.cs
- MeshGeometry3D.cs
- TakeQueryOptionExpression.cs
- ServicePointManager.cs
- XmlSchemaException.cs
- ControlCollection.cs
- PageClientProxyGenerator.cs
- AdjustableArrowCap.cs
- HttpRawResponse.cs
- TableLayoutStyle.cs
- Vector3DAnimationBase.cs
- MasterPageParser.cs
- WindowsGraphics.cs
- Point3DIndependentAnimationStorage.cs
- HttpHostedTransportConfiguration.cs
- WorkflowInstanceExtensionCollection.cs
- ClientTarget.cs
- ParseNumbers.cs