Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SelectionWordBreaker.cs
- DesignerPerfEventProvider.cs
- TdsParser.cs
- IriParsingElement.cs
- SoundPlayerAction.cs
- GregorianCalendarHelper.cs
- XsltConvert.cs
- BindableTemplateBuilder.cs
- HttpCookiesSection.cs
- ScrollItemPatternIdentifiers.cs
- XmlCountingReader.cs
- XmlSecureResolver.cs
- NativeMethods.cs
- AssemblySettingAttributes.cs
- DBConnection.cs
- TextUtf8RawTextWriter.cs
- ToolStripSplitButton.cs
- DocumentOrderComparer.cs
- BaseParser.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- TraceHandlerErrorFormatter.cs
- DecoderFallback.cs
- WebHttpDispatchOperationSelectorData.cs
- ToolStripDropDown.cs
- OdbcRowUpdatingEvent.cs
- _HelperAsyncResults.cs
- GestureRecognizer.cs
- FrameDimension.cs
- COAUTHIDENTITY.cs
- Win32.cs
- DNS.cs
- ListDictionary.cs
- XpsS0ValidatingLoader.cs
- Label.cs
- RelatedPropertyManager.cs
- CodeSnippetCompileUnit.cs
- MenuItem.cs
- EntityDataSourceState.cs
- webclient.cs
- FactoryMaker.cs
- TypedElement.cs
- ToolTip.cs
- DesignerLabelAdapter.cs
- CatalogZoneAutoFormat.cs
- DBSchemaRow.cs
- TypePropertyEditor.cs
- NumberFunctions.cs
- HttpWebResponse.cs
- UxThemeWrapper.cs
- BitmapScalingModeValidation.cs
- PresentationTraceSources.cs
- SessionPageStatePersister.cs
- PagesChangedEventArgs.cs
- CircleHotSpot.cs
- HtmlInputCheckBox.cs
- ContentValidator.cs
- UrlAuthorizationModule.cs
- DispatcherHookEventArgs.cs
- DnsEndpointIdentity.cs
- ProfileEventArgs.cs
- GraphicsPathIterator.cs
- BufferedGraphicsContext.cs
- Simplifier.cs
- ExcludePathInfo.cs
- DataGridColumnCollection.cs
- SponsorHelper.cs
- SemaphoreSecurity.cs
- safelinkcollection.cs
- _LocalDataStore.cs
- CacheDependency.cs
- ValidateNames.cs
- CodeDOMUtility.cs
- SchemaTableOptionalColumn.cs
- FormsIdentity.cs
- TableParaClient.cs
- MediaElement.cs
- DataViewManager.cs
- WindowsFormsEditorServiceHelper.cs
- XmlDsigSep2000.cs
- Helper.cs
- DataColumnMappingCollection.cs
- Literal.cs
- ErrorInfoXmlDocument.cs
- WindowsAuthenticationEventArgs.cs
- ColorContext.cs
- SplashScreenNativeMethods.cs
- ExceptionHandler.cs
- LayoutExceptionEventArgs.cs
- CacheOutputQuery.cs
- PropertyEntry.cs
- MessagePropertyFilter.cs
- SynchronizedInputAdaptor.cs
- SafeMemoryMappedViewHandle.cs
- DataServiceException.cs
- ToolboxComponentsCreatingEventArgs.cs
- TextWriterTraceListener.cs
- ObjectMaterializedEventArgs.cs
- HwndMouseInputProvider.cs
- ChtmlTextWriter.cs
- TraceLevelHelper.cs