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
- FixedPosition.cs
- MenuCommandService.cs
- MenuItemAutomationPeer.cs
- PerformanceCounterManager.cs
- SR.cs
- OrderedEnumerableRowCollection.cs
- RegistryPermission.cs
- ComponentCommands.cs
- DataBoundControl.cs
- WindowsStartMenu.cs
- TypeAccessException.cs
- ItemMap.cs
- Boolean.cs
- InstanceView.cs
- DataServiceQueryOfT.cs
- ExtendedPropertyDescriptor.cs
- TransformConverter.cs
- XPathConvert.cs
- DbConnectionStringCommon.cs
- _NativeSSPI.cs
- XmlRootAttribute.cs
- MetadataArtifactLoaderComposite.cs
- DefaultAuthorizationContext.cs
- ColorContextHelper.cs
- AssociationSetMetadata.cs
- RepeaterCommandEventArgs.cs
- DragDrop.cs
- SqlClientWrapperSmiStream.cs
- HttpCapabilitiesEvaluator.cs
- WhitespaceRuleLookup.cs
- TreeViewHitTestInfo.cs
- TraceHwndHost.cs
- X509ServiceCertificateAuthenticationElement.cs
- FlowLayoutSettings.cs
- DynamicControl.cs
- HttpListenerPrefixCollection.cs
- safesecurityhelperavalon.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DataServiceQuery.cs
- MarkupExtensionReturnTypeAttribute.cs
- MsmqIntegrationProcessProtocolHandler.cs
- UriParserTemplates.cs
- SurrogateSelector.cs
- FormsAuthenticationTicket.cs
- EditingCommands.cs
- TypeHelper.cs
- ClientSideProviderDescription.cs
- CustomSignedXml.cs
- TagPrefixAttribute.cs
- BypassElement.cs
- Parser.cs
- RotateTransform3D.cs
- PseudoWebRequest.cs
- ToggleButton.cs
- AuthenticatingEventArgs.cs
- MasterPageBuildProvider.cs
- TextSearch.cs
- InputMethod.cs
- AudioFileOut.cs
- Exceptions.cs
- HandlerWithFactory.cs
- HostProtectionException.cs
- SecurityUtils.cs
- _AutoWebProxyScriptWrapper.cs
- TabletCollection.cs
- CodeAccessSecurityEngine.cs
- VisualTarget.cs
- FirewallWrapper.cs
- DocumentPage.cs
- RtfToken.cs
- PrintingPermissionAttribute.cs
- IUnknownConstantAttribute.cs
- EntityExpressionVisitor.cs
- NestPullup.cs
- ProxyManager.cs
- UserControlBuildProvider.cs
- MetadataStore.cs
- CodeFieldReferenceExpression.cs
- EntityDataSourceState.cs
- XmlBinaryWriter.cs
- FilterUserControlBase.cs
- ArrayConverter.cs
- WorkflowNamespace.cs
- CodeCompileUnit.cs
- AssociationSetEnd.cs
- LineMetrics.cs
- HtmlTextBoxAdapter.cs
- DataServiceQueryException.cs
- WebPartConnectionsCloseVerb.cs
- BamlVersionHeader.cs
- ExpandableObjectConverter.cs
- ReceiveSecurityHeader.cs
- ZipArchive.cs
- DataServicePagingProviderWrapper.cs
- DbConnectionPoolOptions.cs
- CqlErrorHelper.cs
- DefaultTraceListener.cs
- VersionPair.cs
- Storyboard.cs
- CharEntityEncoderFallback.cs