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
- TrackingValidationObjectDictionary.cs
- LayoutInformation.cs
- CollectionConverter.cs
- SubMenuStyleCollectionEditor.cs
- TransformerInfoCollection.cs
- querybuilder.cs
- RtfControlWordInfo.cs
- EasingQuaternionKeyFrame.cs
- MenuItemCollection.cs
- QueryContext.cs
- Queue.cs
- DynamicResourceExtension.cs
- PasswordBoxAutomationPeer.cs
- EllipseGeometry.cs
- PrinterUnitConvert.cs
- WindowsTab.cs
- TypographyProperties.cs
- UriParserTemplates.cs
- CollectionViewSource.cs
- EntityCollection.cs
- OptimizerPatterns.cs
- ElementFactory.cs
- ConnectorSelectionGlyph.cs
- XhtmlStyleClass.cs
- ConfigurationElementCollection.cs
- RoleBoolean.cs
- ErrorRuntimeConfig.cs
- VisualStyleInformation.cs
- TextWriterTraceListener.cs
- FunctionImportElement.cs
- SupportsEventValidationAttribute.cs
- Adorner.cs
- XmlNode.cs
- WeakReferenceKey.cs
- LogWriteRestartAreaState.cs
- WpfXamlType.cs
- StrokeCollection.cs
- SizeFConverter.cs
- CalendarDateRange.cs
- Monitor.cs
- Application.cs
- TrackingMemoryStreamFactory.cs
- ProxyAttribute.cs
- ExpressionNode.cs
- UIElementAutomationPeer.cs
- ListViewItem.cs
- ImageClickEventArgs.cs
- FileLogRecordStream.cs
- ResourceReader.cs
- WorkflowOperationInvoker.cs
- Package.cs
- EventItfInfo.cs
- InputLanguageProfileNotifySink.cs
- SymmetricSecurityProtocolFactory.cs
- StructuredTypeEmitter.cs
- OracleTimeSpan.cs
- NGCSerializer.cs
- TypedDataSourceCodeGenerator.cs
- RegionIterator.cs
- DateTime.cs
- AlternationConverter.cs
- Brushes.cs
- Rect.cs
- FormClosedEvent.cs
- StateRuntime.cs
- CharUnicodeInfo.cs
- CriticalHandle.cs
- Visual3D.cs
- StrokeNode.cs
- SmtpMail.cs
- DependencyPropertyValueSerializer.cs
- ComboBoxRenderer.cs
- _emptywebproxy.cs
- MappedMetaModel.cs
- ContextQuery.cs
- FormsAuthenticationCredentials.cs
- NeedSkipTokenVisitor.cs
- ClientSettingsProvider.cs
- OletxResourceManager.cs
- MachineKeySection.cs
- WasEndpointConfigContainer.cs
- XmlSchemaAnnotated.cs
- AttributeTable.cs
- arc.cs
- SizeLimitedCache.cs
- ActivityTypeCodeDomSerializer.cs
- DataGridViewCellEventArgs.cs
- SqlException.cs
- MaskPropertyEditor.cs
- ToolStripItemDesigner.cs
- StorageEntityTypeMapping.cs
- Calendar.cs
- CaseInsensitiveHashCodeProvider.cs
- XmlSchemaSimpleType.cs
- WindowsAltTab.cs
- GacUtil.cs
- PagesSection.cs
- RegisteredScript.cs
- ClientConfigPaths.cs
- XmlDataImplementation.cs