Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / IdentityModel / System / IdentityModel / Tokens / SecurityKeyType.cs / 1 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DBCSCodePageEncoding.cs
- VectorAnimation.cs
- PropertyDescriptorGridEntry.cs
- DataFormats.cs
- SiteMapDesignerDataSourceView.cs
- baseaxisquery.cs
- SafeUserTokenHandle.cs
- LoggedException.cs
- PresentationAppDomainManager.cs
- RangeValidator.cs
- InternalBase.cs
- ImpersonationContext.cs
- FontConverter.cs
- StrokeIntersection.cs
- RegularExpressionValidator.cs
- VarRemapper.cs
- ServiceOperationWrapper.cs
- RuntimeConfigLKG.cs
- EngineSiteSapi.cs
- FixedDocument.cs
- WebUtil.cs
- PerformanceCounter.cs
- Nullable.cs
- StylusLogic.cs
- FileDialogCustomPlace.cs
- BodyGlyph.cs
- TableRowCollection.cs
- WorkflowDefinitionDispenser.cs
- Latin1Encoding.cs
- TcpTransportSecurity.cs
- WebDescriptionAttribute.cs
- StrokeCollectionConverter.cs
- HelpEvent.cs
- RouteUrlExpressionBuilder.cs
- User.cs
- IDQuery.cs
- StylusPointCollection.cs
- XmlEntity.cs
- LinearGradientBrush.cs
- HostingEnvironmentSection.cs
- ProfileSection.cs
- IgnoreSectionHandler.cs
- WebResponse.cs
- Operators.cs
- CallbackValidator.cs
- VariableQuery.cs
- FormViewInsertedEventArgs.cs
- ListView.cs
- SerTrace.cs
- PersonalizationStateInfoCollection.cs
- GeometryDrawing.cs
- WebCategoryAttribute.cs
- IRCollection.cs
- BitmapVisualManager.cs
- listitem.cs
- CharAnimationUsingKeyFrames.cs
- DataGridViewCellStyleEditor.cs
- XmlBaseReader.cs
- X509Certificate2.cs
- TraceHwndHost.cs
- XmlSchemaInferenceException.cs
- PersonalizationState.cs
- XmlnsPrefixAttribute.cs
- Sql8ConformanceChecker.cs
- Win32Exception.cs
- FormParameter.cs
- ComPersistableTypeElement.cs
- LinearKeyFrames.cs
- OpenFileDialog.cs
- DockPatternIdentifiers.cs
- XPathNavigatorKeyComparer.cs
- InputLanguageCollection.cs
- RootBrowserWindow.cs
- GridViewColumnCollection.cs
- BitmapFrameEncode.cs
- ListView.cs
- MimeParameter.cs
- PackageRelationshipSelector.cs
- LicFileLicenseProvider.cs
- HtmlFormWrapper.cs
- MultiAsyncResult.cs
- DrawingContext.cs
- Vector3DIndependentAnimationStorage.cs
- TriState.cs
- DataGridViewButtonCell.cs
- CodeCompiler.cs
- StartFileNameEditor.cs
- SessionStateSection.cs
- ScriptResourceInfo.cs
- RemotingServices.cs
- XmlSchemaAttributeGroupRef.cs
- DataGridParentRows.cs
- UrlPath.cs
- _NetworkingPerfCounters.cs
- PermissionSet.cs
- RelativeSource.cs
- QilSortKey.cs
- Brush.cs
- WebPartConnectVerb.cs
- ResXFileRef.cs